# install docker
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

# configure mirror
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://xdm99afm.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

# install portainer
docker run -d -p 9000:9000 -p 8000:8000 \
-v /var/run/docker.sock:/var/run/docker.sock \
--name portainer portainer/portainer-ce
Last modification:February 12th, 2021 at 08:12 pm