docker之web服务与应用

2018-06-05  本文已影响9人  云师兄

ubuntu

 docker pull hub.c.163.com/public/ubuntu:16.04-tools
docker run -d -name ubuntu hub.c.163.com/public/ubuntu /bin/sh -c "while true;do sleep;done"
docker ps

结果如下:

CONTAINER ID        IMAGE                                     COMMAND                  CREATED             STATUS              PORTS               NAMES
cc47f4cade00        hub.c.163.com/public/ubuntu:16.04-tools   "/bin/sh -c 'while t…"   10 minutes ago      Up 10 minutes       22/tcp              ubuntu
docker exec -it cc47f4cade00 /bin/sh
上一篇下一篇

猜你喜欢

热点阅读