[ 
https://issues.apache.org/jira/browse/YARN-9564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16911777#comment-16911777
 ] 

Eric Badger edited comment on YARN-9564 at 8/20/19 10:32 PM:
-------------------------------------------------------------

To run on a local image, you'll need to specify the {{\-\-pull\-format}} on the 
command line. It defaults to docker, which will send you to the docker 
registry. If you want to use a local image, use docker-daemon instead. e.g. 
{{\-\-pull-format docker-daemon}}

I've uploaded patch 004 to add functionality for docker-daemon support since 
there were a few parsing issues in patch 003. 


{noformat}
./docker_to_squash.py --log=DEBUG --pull-format docker-daemon 
pull-build-push-update hadoop/rhel7:current,hadoop/rhel7:current
{noformat}
I was able to successfully run the tool on a local image (hadoop/rhel7:current) 
using the above command


was (Author: ebadger):
To run on a local image, you'll need to specify the {{--pull-format}} on the 
command line. It defaults to docker, which will send you to the docker 
registry. If you want to use a local image, use docker-daemon instead. e.g. 
{{--pull-format docker-daemon}}

I've uploaded patch 004 to add functionality for docker-daemon support since 
there were a few parsing issues in patch 003. 


{noformat}
./docker_to_squash.py --log=DEBUG --pull-format docker-daemon 
pull-build-push-update hadoop/rhel7:current,hadoop/rhel7:current
{noformat}
I was able to successfully run the tool on a local image (hadoop/rhel7:current) 
using the above command

> Create docker-to-squash tool for image conversion
> -------------------------------------------------
>
>                 Key: YARN-9564
>                 URL: https://issues.apache.org/jira/browse/YARN-9564
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Eric Badger
>            Assignee: Eric Badger
>            Priority: Major
>         Attachments: YARN-9564.001.patch, YARN-9564.002.patch, 
> YARN-9564.003.patch, YARN-9564.004.patch
>
>
> The new runc runtime uses docker images that are converted into multiple 
> squashfs images. Each layer of the docker image will get its own squashfs 
> image. We need a tool to help automate the creation of these squashfs images 
> when all we have is a docker image



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to