1、sudo docker volume create portainer_data
2、sudo docker run -d -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data -v public:/home/public portainer/portainer-ce:latest
3、sudo docker ps
4、ip:9443访问
5、重启:sudo docker restart portainer
6、重新访问portainer,设置密码
标签:run,data,sudo,9443,portainer,docker,安装 From: https://www.cnblogs.com/marshhu/p/17514096.html