Ubuntu 19.10 安装docker

添加阿里的docker源,安装docker

curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu bionic stable"

sudo apt-get install docker-ce

修改docker daemon配置:

cat > /etc/docker/daemon.json <<EOF
{
  "exec-opts": ["native.cgroupdriver=systemd"],
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "100m"
  },
  "storage-driver": "overlay2"
}
EOF

 

posted @ 2020-01-24 17:16  追逐者——Eagle  阅读(917)  评论(0编辑  收藏  举报