proxmox:guests_vms_and_containers:docker:methods_for_running_docker_containers_in_proxmox:docker_running_on_proxmox_itself
Table of Contents
Proxmox - Guests (VMs and Containers) - Docker - Methods for running Docker containers in Proxmox - Docker running on Proxmox itself
ALERT: This method should not be used in a production environment.
CONS
- There is very little segmentation between the containers and the Proxmox host.
- The docker daemon runs as the Proxmox root user which is a universally bad idea.
- This method is the least secure of the possible methods.
Uninstall old versions
sudo apt-get remove docker
NOTE: The contents of /var/lib/docker/, including images, containers, volumes, and networks, are preserved.
Install Docker
sudo apt-get update sudo apt-get install docker
NOTE: Optional:
- By default, the Docker data-root will be on your local storage where Proxmox itself is installed.
- If you want Docker to store its data in another location, edit /lib/systemd/system/docker.service and change the ExecStart= line to include the --data-root option.
- For example, make a ZFS dataset and point Docker to it like this:
ExecStart=/usr/bin/dockerd --data-root /tank/docker-root -H fd:// --containerd=/run/containerd/containerd.sock
- You may need to restart Proxmox after installing Docker, but after that it should be good to go
References
proxmox/guests_vms_and_containers/docker/methods_for_running_docker_containers_in_proxmox/docker_running_on_proxmox_itself.txt · Last modified: 2021/07/04 23:36 by peter