Installing Docker and Portainer on Proxmox VE

proxmoxThis article describes the procedure for installing Docker, including installing Portainer, a GUI for Docker as a test environment. An alternative method to this would be to install a CoreOS vm on Proxmox which would probably be better as it would limit the resources available to Docker without overloading Proxmox.

SSH access

  1. Start by logging on remotely with your admin account.
  2. Run the following commands:
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common



Now you can install docker

curl -fsSL | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
apt-get update && apt-get install docker-ce -y

Now you can run docker ps and see that there aren't any containers running yet.

docker ps

 You will likely want Docker to restart when the host is restarted.

sudo systemctl enable docker



Now we are ready to install portainer. Start by creating a directory in your vms directory, that can act as storage for your portainer container.

cd /mnt/vms
mkdir portainer/data

Now we can deploy the portainer container.

docker run -d -p 9000:9000 -v /mnt/vms/portainer/data:/data -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

Now if you run docker ps you will see the portainer container running.

docker ps

To start using Portainer, browse to your local Proxmox IP address on the 9000 port


Thanks for visiting.