=====Docker Host===== ====Setup==== Setup Docker on Photon OS on ESXi, and install Portainer and Unifi Controller. {{page>esxi:photon_os#Setup&noheader}} Then set up Portainer and Unifi Controller: * Power on the VM * Using a SSH client, connect to :50001 then run: # Enable Docker to run at startup: systemctl enable docker # Install Portainer: docker 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 exit * Open portainer at http://docker.example.com:9000: * Create account * Install the Unifi Controller:{{page>ubnt:unifi_controller#Setup&noheader&inline}} * Shutdown, Save ''Configured'' snapshot, and start the VM again * Edit VM note to add the following: Docker host: Portainer: 8000/TCP, 9000/TCP http Web Interface http://:9000 User: Unifi Controller: 10001/udp, 3478/udp 6789/tcp, 8080/tcp 8443/tcp https Web Portal 8843/tcp, 8880/tcp https://:8443 User: * FIXME: Add network mounts ====Update==== ===Update the OS=== Run ''systemctl enable docker'' after updating to re-enable docker starting on boot {{page>esxi:photon_os#Update&noheader}} ===Update Portainer=== Reconnect and run: # Update the Portainer image: docker pull portainer/portainer-ce # If it responds with: # Status: Downloaded newer image for portainer/portainer-ce: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-ce