Created
June 18, 2018 02:25
-
-
Save smarterclayton/d2ea946f335dce04f756df7228cf094b to your computer and use it in GitHub Desktop.
upload an image layer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tar --numeric-owner -tvzf /tmp/file1.tar.gz | |
drwxr-xr-x 501/20 0 2018-06-04 15:44 ./ | |
-rw-r--r-- 501/20 19 2018-06-04 15:44 ./.cccp.yml | |
-rw-r--r-- 501/20 566 2018-06-04 15:44 ./Dockerfile | |
-rw-r--r-- 501/20 123 2018-06-04 15:44 ./OWNERS | |
drwxr-xr-x 501/20 0 2018-06-04 15:44 ./bin/ | |
-rw-r--r-- 501/20 14 2018-06-04 15:44 ./bin/.gitignore | |
$ oc image append --from=docker.io/library/mysql:latest --to=registry.svc.ci.openshift.org/ci-op-test/foo:latest /tmp/file1.tar.gz --config '{"Entrypoint":null,"Volumes":null}' --drop-history | |
Uploading ... 248.3B/s | |
Pushed image sha256:3615887ae08b414a4d80855686a4fbe7b428b01f53a2f7defd861b6777556e1b to registry.svc.ci.openshift.org/ci-op-test/foo:latest | |
$ docker pull registry.svc.ci.openshift.org/ci-op-test/foo:latest | |
Trying to pull repository registry.svc.ci.openshift.org/ci-op-test/foo ... | |
latest: Pulling from registry.svc.ci.openshift.org/ci-op-test/foo | |
f2aa67a397c4: Pull complete | |
1accf44cb7e0: Pull complete | |
2d830ea9fa68: Pull complete | |
740584693b89: Pull complete | |
4d620357ec48: Pull complete | |
ac3b7158d73d: Pull complete | |
a48d784ee503: Pull complete | |
f122eadb2640: Pull complete | |
3df40c552a96: Pull complete | |
da7d77a8ed28: Pull complete | |
f03c5af3b206: Pull complete | |
54dd1949fa0f: Pull complete | |
8ec40820ad49: Pull complete | |
Digest: sha256:3615887ae08b414a4d80855686a4fbe7b428b01f53a2f7defd861b6777556e1b | |
Status: Downloaded newer image for registry.svc.ci.openshift.org/ci-op-test/foo:latest | |
$ docker run -it registry.svc.ci.openshift.org/ci-op-test/foo:latest /bin/bash | |
root@98dcf9f0af10:/# ls -al | |
total 16 | |
drwxr-xr-x. 1 root root 17 Jun 18 02:22 . | |
drwxr-xr-x. 1 root root 17 Jun 18 02:22 .. | |
-rw-r--r--. 1 501 dialout 19 Jun 4 19:44 .cccp.yml | |
-rwxr-xr-x. 1 root root 0 Jun 18 02:22 .dockerenv | |
-rw-r--r--. 1 501 dialout 566 Jun 4 19:44 Dockerfile | |
-rw-r--r--. 1 501 dialout 123 Jun 4 19:44 OWNERS | |
drwxr-xr-x. 1 501 dialout 24 Jun 4 19:44 bin | |
drwxr-xr-x. 2 root root 6 Feb 23 23:23 boot | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment