Created
March 3, 2016 15:08
-
-
Save miminar/95cfda439355769f8f8f to your computer and use it in GitHub Desktop.
manual pull from istag with docker 1.8
This file contains 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
0 ✓ [15:57:55] root@rhel7-ose: openshift-images | |
$ docker pull hello-world | |
Using default tag: latest | |
Trying to pull repository registry.access.redhat.com/hello-world ... not found | |
Trying to pull repository docker.io/library/hello-world ... latest: Pulling from library/hello-world | |
b901d36b6f2f: Pull complete | |
0a6ba66e537a: Pull complete | |
Digest: sha256:8be990ef2aeb16dbcb9271ddfe2610fa6658d13f6dfb8bc72074cc1ca36966a7 | |
Status: Downloaded newer image for docker.io/hello-world:latest | |
0 ✓ [15:58:12] root@rhel7-ose: openshift-images | |
*$ docker login -u joe -e i@i.i -p IbTXb6Iz3neisHZZQfR4sDhYLaZ-x_GLyJi1J8Cc4Us 172.30.150.240:5000 | |
^C2 ✗ [15:58:48] root@rhel7-ose: openshift-images | |
*$ docker login -u joe -e i@i.i -p IbTXb6Iz3neisHZZQfR4sDhYLaZ-x_GLyJi1J8Cc4Us 172.30.104.152:5000 | |
WARNING: login credentials saved in /root/.docker/config.json | |
Login Succeeded | |
0 ✓ [15:58:59] root@rhel7-ose: openshift-images | |
$ docker tag docker.io/hello-world 172.30.104.152:5000/tmp/hello-world:latest | |
0 ✓ [15:59:27] root@rhel7-ose: openshift-images | |
$ docker push 172.30.104.152:5000/tmp/hello-world:latest | |
The push refers to a repository [172.30.104.152:5000/tmp/hello-world] (len: 1) | |
0a6ba66e537a: Pushed | |
b901d36b6f2f: Pushed | |
latest: digest: sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1 size: 2748 | |
0 ✓ [15:59:30] root@rhel7-ose: openshift-images | |
$ oc describe -n tmp istag | |
Name: sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1 | |
Created: 42 seconds ago | |
Labels: <none> | |
Annotations: openshift.io/image.managed=true | |
Docker Image: 172.30.104.152:5000/tmp/hello-world@sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1 | |
Image Name: sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1 | |
Image Size: 633 B (first layer 601 B, last binary layer 32 B) | |
Image Created: 4 months ago | |
Author: <none> | |
Arch: amd64 | |
Command: /hello | |
Working Dir: <none> | |
User: <none> | |
Exposes Ports: <none> | |
Docker Labels: <none> | |
0 ✓ [16:00:12] root@rhel7-ose: openshift-images | |
$ oc tag -n tmp hello-world@sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1 mybase:latest | |
Tag mybase:latest set to hello-world@sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1. | |
0 ✓ [16:01:38] root@rhel7-ose: openshift-images | |
*$ oc describe -n tmp istag | |
Name: sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1 | |
Created: 2 minutes ago | |
Labels: <none> | |
Annotations: openshift.io/image.managed=true | |
Docker Image: 172.30.104.152:5000/tmp/hello-world@sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1 | |
Image Name: sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1 | |
Image Size: 633 B (first layer 601 B, last binary layer 32 B) | |
Image Created: 4 months ago | |
Author: <none> | |
Arch: amd64 | |
Command: /hello | |
Working Dir: <none> | |
User: <none> | |
Exposes Ports: <none> | |
Docker Labels: <none> | |
Name: sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1 | |
Created: 2 minutes ago | |
Labels: <none> | |
Annotations: openshift.io/image.managed=true | |
Docker Image: 172.30.104.152:5000/tmp/hello-world@sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1 | |
Image Name: sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1 | |
Image Size: 633 B (first layer 601 B, last binary layer 32 B) | |
Image Created: 4 months ago | |
Author: <none> | |
Arch: amd64 | |
Command: /hello | |
Working Dir: <none> | |
User: <none> | |
Exposes Ports: <none> | |
Docker Labels: <none> | |
0 ✓ [16:01:51] root@rhel7-ose: openshift-images | |
$ # note the first pull is successful because all the blobs are already downloaded in Docker daemon's storage | |
1 ✗ [16:02:30] root@rhel7-ose: openshift-images | |
$ docker pull 172.30.104.152:5000/tmp/mybase:latest | |
Trying to pull repository 172.30.104.152:5000/tmp/mybase ... latest: Pulling from tmp/mybase | |
Digest: sha256:bb5c16ecd58633d4088140acb6ee386c5c3b09a8f03c517a288093415f0c09d1 | |
Status: Downloaded newer image for 172.30.104.152:5000/tmp/mybase:latest | |
0 ✓ [16:03:21] root@rhel7-ose: openshift-images | |
$ docker rmi -f 0a6ba66e537a | |
Untagged: 172.30.104.152:5000/tmp/hello-world:latest | |
Untagged: 172.30.104.152:5000/tmp/mybase:latest | |
Untagged: docker.io/hello-world:latest | |
Deleted: 0a6ba66e537a53a5ea94f7c6a99c534c6adb12e3ed09326d4bf3b38f7c3ba4e7 | |
Deleted: b901d36b6f2fd759c362819c595301ca981622654e7ea8a1aac893fbd2740b4c | |
0 ✓ [16:03:31] root@rhel7-ose: openshift-images | |
$ docker pull 172.30.104.152:5000/tmp/mybase:latest | |
Trying to pull repository 172.30.104.152:5000/tmp/mybase ... latest: Pulling from tmp/mybase | |
b901d36b6f2f: Pulling fs layer | |
0a6ba66e537a: Pulling fs layer | |
not found | |
Error: image tmp/mybase:latest not found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment