User Tools

Site Tools


esxi:docker_host

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
esxi:docker_host [2021/01/17 06:59]
derek
esxi:docker_host [2021/01/17 08:04] (current)
derek
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.
  
-Install a Photon OS base, using a relevant hostname: +{{page>esxi:photon_os#Setup&noheader}}
-{{page>esxi:photon_os#Setup}}+
  
 Then set up Portainer and Unifi Controller: Then set up Portainer and Unifi Controller:
Line 20: Line 19:
   * Open portainer at http://docker.example.com:9000:   * Open portainer at http://docker.example.com:9000:
     * Create account     * Create account
-    * Install the Unifi Controller: +    * Install the Unifi Controller:{{page>ubnt:unifi_controller#Setup&noheader&inline}}
-{{page>ubnt:unifi_controller#Setup}}+
  
   * Shutdown, Save ''Configured'' snapshot, and start the VM again   * Shutdown, Save ''Configured'' snapshot, and start the VM again
Line 44: Line 42:
 ====Update==== ====Update====
 ===Update the OS=== ===Update the OS===
 +Run ''systemctl enable docker'' after updating to re-enable docker starting on boot
 +
 {{page>esxi:photon_os#Update&noheader}} {{page>esxi:photon_os#Update&noheader}}
  
Line 49: Line 49:
 Reconnect and run: Reconnect and run:
 <code> <code>
-# For some reason I needed to re-enable docker starting on boot? +# Update the Portainer image
-systemctl enable docker +docker pull portainer/portainer-ce
- +
-# Update Portainer: +
-docker pull portainer/portainer+
 # If it responds with: # If it responds with:
-# Status: Downloaded newer image for portainer/portainer:latest+# Status: Downloaded newer image for portainer/portainer-ce:latest
 # 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 /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/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
 </code> </code>
esxi/docker_host.txt · Last modified: 2021/01/17 08:04 by derek