一、 docker入门学习地址:
菜鸟教程:https://www.runoob.com/docker/docker-architecture.html
docker hub : https://registry.hub.docker.com/_/ubuntu
- 安装以下包以使apt可以通过HTTPS使用存储库(repository):
$ sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
- 更新apt包索引:
$ sudo apt-get update
- 下载curl 命令:
$ sudo apt install curl
- 使用国内 daocloud 一键安装命令:
curl -sSL https://get.daocloud.io/docker | sh
-
验证安装
sudo docker run hello-world
安装完成!
- docker - hello world
sudo docker run ubuntu:16.04 /bin/echo "hello world"