Created
February 11, 2014 00:38
-
-
Save drnic/8927193 to your computer and use it in GitHub Desktop.
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
Pulling ubuntu image from public registry | |
``` | |
core@localhost ~ $ docker -H tcp://localhost:5011 pull ubuntu:13.04 | |
Pulling repository ubuntu | |
eb601b8965b8: Download complete | |
511136ea3c5a: Download complete | |
f323cf34fd77: Download complete | |
core@localhost ~ $ docker -H tcp://localhost:5011 images | |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
ubuntu 13.10 9f676bd305a4 6 days ago 178 MB | |
ubuntu saucy 9f676bd305a4 6 days ago 178 MB | |
ubuntu 13.04 eb601b8965b8 6 days ago 166.5 MB | |
ubuntu raring eb601b8965b8 6 days ago 166.5 MB | |
ubuntu 12.10 5ac751e8d623 6 days ago 161 MB | |
ubuntu quantal 5ac751e8d623 6 days ago 161 MB | |
ubuntu 10.04 9cc9ea5ea540 6 days ago 180.8 MB | |
ubuntu lucid 9cc9ea5ea540 6 days ago 180.8 MB | |
ubuntu 12.04 9cd978db300e 6 days ago 204.4 MB | |
ubuntu latest 9cd978db300e 6 days ago 204.4 MB | |
ubuntu precise 9cd978db300e 6 days ago 204.4 MB | |
``` | |
Tagging and pushing image to local registry | |
``` | |
$ docker tag ubuntu:13.04 localhost:5000/ubuntu-13.04 | |
$ docker push localhost:5000/ubuntu-13.04 | |
The push refers to a repository [localhost:5000/ubuntu-13.04] (len: 1) | |
Sending image list | |
Pushing repository localhost:5000/ubuntu-13.04 (1 tags) | |
511136ea3c5a: Image already pushed, skipping | |
f323cf34fd77: Image successfully pushed | |
eb601b8965b8: Image successfully pushed | |
Pushing tags for rev [eb601b8965b8] on {http://localhost:5000/v1/repositories/ubuntu-13.04/tags/latest} | |
``` | |
Running local fresh docker: | |
``` | |
docker -d -g /home/core/docker-test -p /var/run/docker-test.pid -H tcp://127.0.0.1:5011 | |
``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment