Docker - nicolas-tullio/Tech-Journal GitHub Wiki
This lab was a bit difficult for me as I needed to take time to catch up on correctly configuring my environment. After that, I was able to proceed with the lab rather easily.
Networking
I uninstalled netplan in favor of using ifupdown
nano /etc/network/interfaces
auto ens160 iface ens160 inet static address 10.0.5.12 netmask 255.255.255.0 network 10.0.5.0 broadcast 10.0.5.255 gateway 10.0.5.2 dns-search nicolas.local dns-nameservers 10.0.5.5
Add sudo user
- sudo adduser user Enter password when prompted
- usermod -aG sudo user
Common docker commands
- docker ps - displays running services and their ports
- docker stop, start, rm, pause - they are all basic commands and do what they say
- docker-compose up -d - this starts up the program using the docker-compose.yml file and runs containers in the background