Docker笔记

0x01 安装docker

如果安装 Docker ce 需要 16.04 及以上版本,Docker 要求 Ubuntu 系统的内核版本高于 3.10,使用以下命令检查

1
uname -r
使用脚本安装 Docker
1
wget -qO- https://get.docker.com/ | sh
启动 docker 后台服务
1
2
sudo service docker start
docker run hello-world
镜像加速

编辑/etc/docker/daemon.json

1
2
3
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}

其他安装方法参照https://www.runoob.com/docker/ubuntu-docker-install.html