2025年11月最新的linux docker安装一键脚本:
直接输入:bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh)
portainer安装:docker pull portainer/portainer-ce
启动:docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v /dockerData/portainer:/data –restart=always –name portainer portainer/portainer-ce:latest
docker portainer这个版本有个bug,无法启动,修改方法如下
- systemctl status docker.service 查看目录
- systemctl edit docker.service
- Add this part above the line ### Lines below this comment will be discarded:
[Service]
Environment=DOCKER_MIN_API_VERSION=1.24 - Save the file and exit
- systemctl daemon-reload
- systemctl restart docker