Skip to content

Instantly share code, notes, and snippets.

@bosky101
Created September 19, 2013 15:56
Show Gist options
  • Save bosky101/6625584 to your computer and use it in GitHub Desktop.
Save bosky101/6625584 to your computer and use it in GitHub Desktop.
eg of pushing to a private docker repo
$ docker ps
ID IMAGE COMMAND CREATED STATUS PORTS
2dd6ee092e87 verbs/statsdwithl:latest node /statsd-0.6.0/s 3 weeks ago Up 3 weeks XXX->8125/udp, XXX->8126
e71f9a45e648 lonewolf/graphite:latest /bin/sh /usr/local/b 3 weeks ago Ghost XXX->2003, XXX->8000
$ docker commit 2dd6ee092e87 verbsbackup/statsd
7ff742b1ec9e
$ docker images
REPOSITORY TAG ID CREATED SIZE
verbsbackup/statsd latest 7ff742b1ec9e 20 seconds ago 16.39 kB (virtual 551.3 MB)
$ docker tag verbsbackup/statsd docker.example.com:5000/statsdwithl
$ docker images
REPOSITORY TAG ID CREATED SIZE
docker.example.com:5000/statsdwithl latest 7ff742b1ec9e 5 minutes ago 16.39 kB (virtual 551.3 MB)
verbsbackup/statsd latest 7ff742b1ec9e 5 minutes ago 16.39 kB (virtual 551.3 MB)
$ docker push docker.example.com:5000/statsdwithl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment