有些系统直接 apt install docker.io就能装上,有些就不行,或者运行报错:
- mkdir /app read-only filesystem
- docker socket not found
root 操作:
apt-get updateapt install apt-transport-https ca-certificates curl software-properties-commoncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"apt updateapt-cache policy docker-ceapt install docker-ce
