This is an old revision of the document!
Setup Docker on Photon OS on ESXi, and install Portainer and Unifi Controller.
OVA with virtual hardware v13
from https://github.com/vmware/photon/wiki/Downloading-Photon-OSCreate/Register VM
Deploy a virtual machine from an OVF or OVA file
Target Datastore
Actions
> Edit Settings
chage -M -1 root
hostnamectl set-hostname <hostname>
tdnf upgrade
systemctl enable docker
Initial
snapshot, and start the VM againdocker volume create portainer_data
docker run –name Portainer –restart=always -d -p 8000:8000 -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
Configured
snapshot, and start the VM againMinimal installed profile of PhotonOS User: root Docker host: Portainer: 8000/TCP, 9000/TCP http Web Interface http://<server.example.com>:9000 User: <User> Unifi Controller: 10001/udp, 3478/udp 6789/tcp, 8080/tcp 8443/tcp https Web Portal 8843/tcp, 8880/tcp https://<server.example.com>:8443 User: <User>
# Update packages: tdnf upgrade tdnf clean all systemctl enable docker # For some reason I needed to re-enable docker starting on boot? reboot # And reconnect # Update Portainer: docker pull portainer/portainer # If it responds with the following: # Status: Downloaded newer image for portainer/portainer:latest # then run the following to update the container docker stop Portainer docker rm Portainer docker run --name Portainer --restart=always -d -p 8000:8000 -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer