我个人比较喜欢用portainer来管理docker,不过配置和部署容器还是建议尽可能使用终端。
Docker
apt update
apt install curl -y
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
Portainer
sudo docker volume create portainer_data
sudo docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
Use ShellCrash in case you have connection issue
sudo -i
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && bash /tmp/install.sh && source /etc/profile &> /dev/null
# 或者
export url='https://gh.jwsc.eu.org/master' && bash -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
如果你有自己的海外vps,你也可以自建docker镜像源,参考: