默认分类在PVE服务器里面创建Docker并安装PortainerGUI2020-02-10 Read 4571 No comments # 在PVE服务器里面创建Docker并安装PortainerGUI - Install Proxmox VE - 进行以下源代码调整以便可以更新: 要首先修复此问题,请添加无订阅源: 编辑文件: ```bash # nano /etc/apt/sources.list ``` 添加: ```bash deb http://download.proxmox.com/debian stretch pve-no-subscription ``` 删除企业源,编辑文件: ```bash # nano /etc/apt/sources.list.d/pve-enterprise.list ``` 找到并删除或注释掉以下一行: ```bash # deb https://enterprise.proxmox.com/debian stretch pve-enterprise ``` 更行系统源: ```bash apt-get update && apt-get dist-upgrade -y ``` - 重启服务器 - 安装 docker-ce: ```bash apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - apt-key fingerprint 0EBFCD88 add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" apt-get update && apt-get install docker-ce -y ``` 你现在应该可以运行docker ps并且没有看到正在运行的容器 - 使用持久容器安装Portainer 为了便于入门,我们将在引导驱动器上创建一个目录。您应该将其移动到其他存储,这样比较简单: ```bash mkdir /root/portainer/data ``` 为Docker WebGUI安装Portainer: ```bash docker run -d -p 9000:9000 -v /root/portainer/data:/data -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer ``` 在您看到Portainer启动后等待大约15-30秒(您可以运行“docker ps”查看状态) - Your login URLs will be the following ports: ```bash Proxmox GUI: https://:8006 Portainer GUI: http://:9000 ```代码文件服务器stretchaptdebetcnano