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

Eric Badger commented on YARN-9564:
-----------------------------------

Once the tool completes, your hdfs-root should look something like this. There 
may be more or less layers depending on the image that you choose to build.

{noformat}
[ebadger@foo bin]$ hadoop fs -ls /runc-root/*
Found 1 items
-r--r--r--   1 ebadger supergroup       8038 2019-08-01 20:22 
/runc-root/config/599579330b2d6f01817b402be0cdc0af1a9b7b076f3743483c2c509b7f73c5ad
-r--r--r--   1 ebadger supergroup        153 2019-08-01 20:22 
/runc-root/image-tag-to-hash
Found 10 items
-r--r--r--   1 ebadger supergroup 1143881728 2019-08-01 20:19 
/runc-root/layers/1b5ed3a410f4c2e8948816ceaae20aa2f2ba9aab682ca899f900fc4d43f6e98b.sqsh
-r--r--r--   1 ebadger supergroup       4096 2019-08-01 20:21 
/runc-root/layers/23c1e1af124ca00519aa2858e891a4f8c3a25e9350b39419b786b638f312f8d6.sqsh
-r--r--r--   1 ebadger supergroup       4096 2019-08-01 20:20 
/runc-root/layers/253aace22c99909557f14eebe73d5a56b3c155cc3ce1a941755d53fe10d53177.sqsh
-r--r--r--   1 ebadger supergroup  106979328 2019-08-01 20:20 
/runc-root/layers/50ede125b97f8bc1c4637b17c5d5fb93cd82088ad07d8143e07482cfbe025f6e.sqsh
-r--r--r--   1 ebadger supergroup       4096 2019-08-01 20:22 
/runc-root/layers/8227f11724713c930b1eed248657e725d200bf58cb2796cd1d2ed6404b49a5a9.sqsh
-r--r--r--   1 ebadger supergroup    1748992 2019-08-01 20:19 
/runc-root/layers/ae4a0c3146659d5a83077c7143eb255c5115223ef346eb462124c9fe637d288a.sqsh
-r--r--r--   1 ebadger supergroup      28672 2019-08-01 20:19 
/runc-root/layers/b38724009ad1954978bb8c0943d6463bab47c7aab3f463085f7c0ba5fcf30145.sqsh
-r--r--r--   1 ebadger supergroup  360402944 2019-08-01 20:20 
/runc-root/layers/db1a08a14163561a7c7b78ecdc8a98211530b50a1a3eed9483bd556f688788f9.sqsh
-r--r--r--   1 ebadger supergroup       4096 2019-08-01 20:21 
/runc-root/layers/eb8f6b81108d2f3f5dd1de79805a34be5561ebb247aa8d4f87f096a9109335b9.sqsh
-r--r--r--   1 ebadger supergroup  114610176 2019-08-01 20:21 
/runc-root/layers/fb4e5c73119d8f54a37f12055ab9aa9d12e1e77c015742c86175a6a6d8b6e5fb.sqsh
Found 1 items
-r--r--r--   1 ebadger supergroup       2418 2019-08-01 20:22 
/runc-root/manifests/b71721ecf1e6cbbae071621b22f9003f6909b24bd883d804fef61ec2548bfda9
{noformat}

Your image-tag-to-hash file should look something like this:

{noformat}
[ebadger@foo bin]$ hadoop fs -cat /runc-root/image-tag-to-hash
busybox:latest:b71721ecf1e6cbbae071621b22f9003f6909b24bd883d804fef61ec2548bfda9#registry.hub.docker.com/library/busybox,busybox:latest
{noformat}

Note that the hashes used above do not actually reflect the exact hashes that 
busybox will get you. 

> 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
>
>
> 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
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to