Step By Step How I Setup My HomeLab Docker Containers
i12bretro
#Docker #HomeLab #Portainer
Full steps can be found at https://i12bretro.github.io/tutorials/0467.html
Installing VirtualBox 01. Download VirtualBox https://www.virtualbox.org/wiki/Downloads 02. Download VirtualBox Extension Pack https://www.virtualbox.org/wiki/Downloads 03. Install VirtualBox, accepting the defaults 04. Install VirtualBox Extension Pack, accepting the defaults 05. Launch VirtualBox if it is not already running Creating TurnKey Core VirtualBox VM 01. Download the TurnKey Linux Core .ova https://www.turnkeylinux.org/core 02. In VirtualBox, select File ≫ Import Appliance... 03. Click the Browse icon ≫ Navigate to and select the downloaded .ova file 04. Click Next and then Import 05. Make sure the Turnkey Core VM is selected and click Start ≫ Normal 06. Once the VM boots, enter a new root password 07. Select Skip on the TurnKey Backup and Migration screen 08. Select Skip on the System Notifications screen 09. Select Install on the Security Updates screen 10. Note the URLs and IP address for the VM ≫ Press Enter to finish the installation Installing Docker 01. Execute the following commands in a terminal: # update software repositories apt update # install necessary packages for https apt calls apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common # add docker GPG key curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - # add docker software repository add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" # install docker apt update apt install docker-ce docker-ce-cli containerd.io # create a docker group groupadd docker # add the current user to the docker group usermod -aG docker $USER Running Portainer Docker Container 01. Continue with the following commands in terminal to run Portainer: # create a working directory for portainer mkdir ~/docker/portainer -p # run the portainer docker container docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v ~/docker/portainer:/data portainer/portainer-ce 02. Once the Portainer container is downloaded and running, open a web browser and navigate to http://DNSorIP:9000 03. Set an administrator username and password ≫ Click Create u ... https://www.youtube.com/watch?v=cOi5PApSK9U
97743991 Bytes