Lab 02 - Docker
Things I didn't already know / suffered with
- The documentation for Netplan is pretty good, but I had a couple of specific pain points:
- They deprecated
gateway4
, so you have to use aroutes
block likeroutes:
- to: default
via: <gateway_ip>
- They deprecated
- Adding a
sudo
user was only different because the group is calledsudo
instead ofwheel
- This means
usermod -aG sudo <your_user>
instead ofusermod -aG wheel <your_user>
- You should maybe still also be in
wheel
too, since I believe it's eval'd forsu
- This means
Docker commands
docker run
- create a container based on a template (imo not as useful as compose stacks)docker compose <up,down,build>
- create or destroy a stack based on adocker-compose.yml
- NOTE THE SPACE
docker compose
vsdocker-compose
. The latter is a deprecated version that would require a seperate package install.
- NOTE THE SPACE
docker pull
- pull an image from dockerhub (premade containers/containerized apps)