This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
esxi:docker_host [2019/09/17 13:45] derek created |
esxi:docker_host [2024/09/22 19:51] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| =====Docker Host===== | =====Docker Host===== | ||
| - | Install | + | ====Setup==== |
| + | Setup Docker on Photon OS on ESXi, and install Portainer and Unifi Controller. | ||
| - | * Download the Photon OS '' | + | {{page>esxi:photon_os# |
| - | * In ESXi: | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Name the VM | + | |
| - | * Upload the Photon OS OVA file | + | |
| - | * Specify the desired '' | + | |
| - | * Accept the License Agreement | + | |
| - | * Select Deployment Options | + | |
| - | * Confirm settings | + | |
| - | * | + | |
| - | * '' | + | |
| - | * Select appropriate VM settings depending on desired applications | + | |
| - | * Use NVMe Controller for the hard disk if using NVMe storage | + | |
| - | * | + | |
| - | * Set desired autostart setting | + | |
| - | * Run VM | + | |
| - | * Login with root details from the VM note | + | |
| - | * Set new password | + | |
| - | * Set new hostname '' | + | |
| - | * Update packages '' | + | |
| - | * Enable Docker to run at startup '' | + | |
| - | * Shutdown, Save initial snapshot, and start the VM again | + | |
| - | * | + | |
| - | * Install Portainer: | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | | + | Then set up Portainer and Unifi Controller: |
| + | * Power on the VM | ||
| + | * Using a SSH client, connect to < | ||
| + | <code bash> | ||
| + | # 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 / | ||
| + | exit | ||
| + | </ | ||
| + | | ||
| * Create account | * Create account | ||
| - | * Navigate to the only running container | + | * Install |
| - | * Rename it to Portainer | + | |
| - | * Set '' | + | |
| - | * Install Unifi Controller | + | * Shutdown, Save '' |
| - | * Add new container | + | * Edit VM note to add the following: |
| - | * Name > '' | + | <code> |
| - | * Image > '' | + | Docker host: |
| - | * Add network ports: | + | Portainer: |
| - | * 8080/tcp - Device command/ | + | 8000/TCP, 9000/TCP http Web Interface |
| - | * 8443/tcp - Web interface + API | + | http://< |
| - | * 8843/tcp - HTTPS portal | + | User: <User> |
| - | * 8880/tcp - HTTP portal | + | |
| - | * 3478/udp - STUN service | + | |
| - | * 6789/tcp - Speed Test (unifi5 only) | + | |
| - | * 10001/udp - UBNT Discovery | + | |
| - | * Add Volume mapping: | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Add Environment variables: | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Restart policy | + | |
| - | * Shutdown, Save initial snapshot, and start the VM again | + | Unifi Controller: |
| - | * Edit VM note to indicate details/running applications | + | 10001/udp, 3478/udp |
| + | 6789/tcp, 8080/tcp | ||
| + | 8443/tcp https Web Portal | ||
| + | 8843/tcp, 8880/tcp | ||
| + | https://< | ||
| + | User: < | ||
| + | </code> | ||
| * FIXME: Add network mounts | * FIXME: Add network mounts | ||
| + | |||
| + | ====Update==== | ||
| + | ===Update the OS=== | ||
| + | Run '' | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | ===Update Portainer=== | ||
| + | Reconnect and run: | ||
| + | < | ||
| + | # Update the Portainer image: | ||
| + | docker pull portainer/ | ||
| + | # If it responds with: | ||
| + | # Status: Downloaded newer image for portainer/ | ||
| + | # 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 / | ||
| + | </ | ||