Add a couple of new questions

Mostly containers related questions.
This commit is contained in:
abregman
2021-10-10 19:48:01 +03:00
parent 6e9ac1ad5d
commit e30c7aca4f
4 changed files with 256 additions and 73 deletions

View File

@ -0,0 +1,18 @@
## Running Containers
### Objective
Learn how to run containers
### Requirements
Make sure Podman or Docker (or any other containers engine) is installed on your system
### Instructions
1. Run a container using the latest nginx image
2. List the containers to make sure the container is running
3. Run another container but this time use ubuntu latest and attach to the terminal of the container
4. List again the containers. How many containers are running?
5. Stop the containers
6. Remove the containers

View File

@ -0,0 +1,18 @@
## Running Containers
### Objective
Learn how to run containers
### Requirements
Make sure Podman or Docker (or any other containers engine) is installed on your system
### Instructions
1. Run a container using the latest nginx image - `podman container run nginx:latest`
2. List the containers to make sure the container is running - `podman container ls`
3. Run another container but this time use ubuntu latest and attach to the terminal of the container - `podman container run -it ubuntu:latest /bin/bash`
4. List again the containers. How many containers are running? - `podman container ls` -> 2
5. Stop the containers - WARNING: the following will stop all the containers on the host: `podman stop $(podman container ls -q)` or for each container `podman stop [container id/name]`
6. Remove the containers - WARNING: the following will remove other containers as well if such are running: `podman rm $(podman container ls -q -a)` or for each container `podman rm [container id/name]`

View File

@ -6,7 +6,7 @@ Learn how to work with containers images
### Requirements
Make sure Podman, Docker (or any other containers engine) is installed on your system
Make sure Podman or Docker (or any other containers engine) is installed on your system
### Instructions