This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
esxi:docker_host [2020/04/15 10:03] derek |
esxi:docker_host [2024/09/22 19:51] (current) |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Setup Docker on Photon OS on ESXi, and install Portainer and Unifi Controller. | 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 | + | |
| - | * Disable password expiry: '' | + | |
| - | * Set new hostname: '' | + | |
| - | * Update packages: '' | + | |
| - | * Enable Docker to run at startup: '' | + | |
| - | * Shutdown, Save '' | + | |
| - | * | + | |
| - | * 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 | ||
| + | </ | ||
| * Open portainer at http:// | * Open portainer at http:// | ||
| * Create account | * Create account | ||
| - | * Install | + | * Install |
| * Shutdown, Save '' | * Shutdown, Save '' | ||
| - | * Edit VM note to indicate details/ | + | * Edit VM note to add the following: |
| < | < | ||
| - | Minimal installed profile of PhotonOS | ||
| - | User: root | ||
| - | |||
| Docker host: | Docker host: | ||
| Portainer: | Portainer: | ||
| Line 60: | Line 41: | ||
| ====Update==== | ====Update==== | ||
| - | * If desired, Log in to ESXi, navigate to the docker VM and create new snapshot | + | ===Update |
| - | * Connect via ssh as root to the VM and run the following: | + | Run '' |
| - | < | + | |
| - | # Update packages: | + | |
| - | tdnf upgrade | + | |
| - | tdnf clean all | + | |
| - | systemctl enable docker | + | |
| - | reboot | + | |
| - | # Update Portainer: | + | {{page> |
| - | docker pull portainer/ | + | |
| - | # If it responds with the following: | + | ===Update Portainer=== |
| - | # Status: Downloaded newer image for 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 | # then run the following to update the container | ||
| docker stop Portainer | docker stop Portainer | ||
| docker rm Portainer | docker rm Portainer | ||
| - | docker run --name Portainer --restart=always -d -p 8000:8000 -p 9000:9000 -v / | + | docker run --name Portainer --restart=always -d -p 8000:8000 -p 9000:9000 -v / |
| </ | </ | ||