docker
A 宁
一个菜鸟的学习日常
展开
-
docker的使用----容器使用
容器使用获取镜像 ,启动容器#使用这个命令会自动获取镜像和启动容器[root@localhost ~]# docker run -it ubuntu /bin/bashUnable to find image 'ubuntu:latest' locallylatest: Pulling from library/ubuntu6a5697faee43: Pull complete ba13d3bc422b: Pull complete a254829d9e55: Pull complete原创 2020-10-31 10:59:42 · 114 阅读 · 0 评论 -
docker的使用---Docker Hello World
Docker Hello World#开启docker[root@localhost ~]# sudo systemctl start docker#用docker run命令在容器内运行一个程序[root@localhost ~]# docker run ubuntu:15.10 /bin/echo 'hello world'Unable to find image 'ubuntu:15.10' locally15.10: Pulling from library/ubuntu7dcf5a原创 2020-10-31 09:58:31 · 99 阅读 · 0 评论