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,无法启动,修改方法如下

  1. systemctl status docker.service 查看目录
  2. systemctl edit docker.service
  3. Add this part above the line ### Lines below this comment will be discarded:
    [Service]
    Environment=DOCKER_MIN_API_VERSION=1.24
  4. Save the file and exit
  5. systemctl daemon-reload
  6. systemctl restart docker

作者 huntersong

沪ICP备2021012984号