2023 Boost - Week 3#
📺 https://youtu.be/mUmQk1o6FFs
(PLEASE SKIP TO WEEK 4.) This week we setup an Ubuntu Linux container image using podman command and apt package manager, learn how to save (commit) an image copy so we have backups during our setup, and how to navigate the command line.
- Why Ubuntu?
- Pull an Ubuntu Linux image into podman images
- Create (run) a named container from the Ubuntu local image
- Exit the container
- Understand difference between running and exited containers
- Use –rm for temporary containers
- Use podman ps -a to show all containers (running and exited)
- Use podman rm to remove unwanted containers
- Use bash tab completion to save on typing
- Use up and down arrows (for now) to get previous commands
- Restart and attach to named container
- Use Advanced Package Manager (APT)
- Use
apt update
command to refresh list of packages - Clear the screen with clear command (not control-L)
- Install documentation helpers
- Use man to get help about commands
- Use help to get help about bash builtins
- Look for runnable stuff
- Use which command
- Use type builtin
- Use command -v command
- Use file command to see what type of thing it is
- Everything is a file (inode) even directories
- Use ls command
- Use pwd command
- Use cd to change directories
- Use chmod to change permissions
- Use chown to change owner (and group)
- Add new user with adduser (or useradd)
- Delete user with deluser (or userdel)
- Add new group with addgroup (or groupadd)
- Delete group with delgroup (or groupdel)
- Commit (save) container as image
- Push saved image to GitHub Container Registry
- Create Personal Access Token on GitHub
- Use podman push to push local image to remote ghcr.io
- View saved GitHub packages (containers)
Last update:
2023-05-27