摘要: https://docs.docker.com/engine/installation/linux/centos/ curl -fsSL https://test.docker.com/ | sh Install with the script Log into your machine as a 阅读全文
posted @ 2016-10-08 18:54 禾米 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 前者为官方的镜像,后者为个人发布的 1.注册一个docker hub 为镜像打标签 这个时候别人通过 docker pull xiuju/world 来获得使用镜像 阅读全文
posted @ 2016-10-08 16:24 禾米 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 可以拿ubuntu喝alpine作为基础的镜像 ubuntu@ip-172-31-20-162:~$ docker build -t world . Sending build context to Docker daemon 26.11 kB 发送上下文[当前路径]到docker ,Step 1 阅读全文
posted @ 2016-10-08 15:55 禾米 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 运行docoker Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...] 1。 可交互的 a. ubuntu@ip-172-31-20-162:~$ docker run -it ubuntu bashroot@07ad56615fbf:/# b. 阅读全文
posted @ 2016-10-08 14:56 禾米 阅读(198) 评论(0) 推荐(0) 编辑