Guest User

Untitled

a guest
Nov 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. erik@work ~ $ docker run --network mmmmm -it -v /var/run/docker.sock:/var/run/docker.sock ubuntu:latest sh -c "apt-get update ; apt-get install docker.io -y ; bash"
  2.  
  3. root@01574361ba59:/#
  4. root@01574361ba59:/# docker ps -a
  5. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  6. 01574361ba59 ubuntu:latest "sh -c 'apt-get upda…" 7 minutes ago Up 7 minutes nervous_banach
  7. 9f7019fca0a6 registry:2.6.2 "/entrypoint.sh /etc…" 25 minutes ago Up 25 minutes 5000/tcp foobar.xxx.yy
  8. root@01574361ba59:/#
  9. root@01574361ba59:/# docker tag ubuntu foobar.xxx.yy:5000/ubuntu
  10. root@01574361ba59:/#
  11. root@01574361ba59:/# docker push foobar.xxx.yy:5000/ubuntu
  12. The push refers to a repository [foobar.xxx.yy:5000/ubuntu]
  13. Get https://foobar.xxx.yy:5000/v1/_ping: dial tcp: lookup foobar.xxx.yy on 91.126.225.225:53: no such host
  14. root@01574361ba59:/#
  15. root@01574361ba59:/# ping foobar.xxx.yy
  16. PING foobar.xxx.yy (10.0.0.4) 56(84) bytes of data.
  17. 64 bytes from foobar.xxx.yy.xxx (10.0.0.4): icmp_seq=1 ttl=64 time=0.037 ms
Add Comment
Please, Sign In to add comment