Skip to content

Commit

Permalink
Merge pull request #2 from Ahmadshen/master
Browse files Browse the repository at this point in the history
Fixed error in docker command and a few typoes day19.md
  • Loading branch information
ibilalkayy authored Oct 7, 2023
2 parents 53ca611 + ed96b19 commit 88c856c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Days/day19.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ It has three parts.
2. `run` will run an image to create a container.
3. `hello-world` is an image that is taken from the online cloud docker registry called docker hub.

When you first run the docker image, it will take sometime to download and run it. After downloading it, it will run fast.
When you first run the docker image, it will take some time to download and run it. After downloading it, it will run fast.

- `docker run -it ubuntu` will run an ubuntu image. `it` is for interactive environment that will take you straight inside the container.
- `docker run -it ubuntu` will run an ubuntu image. `it` is for an interactive environment that will take you straight inside the container.

- `docker images` will show you all the images that are present on the local machine.

Expand All @@ -46,17 +46,17 @@ When you first run the docker image, it will take sometime to download and run i
- `docker ps` is a Docker command to list the running containers.
- `docker container ls` is a Docker command to list the running containers.

- `docker container exec -it container_id bash` execute an interactive bash shell on the container. It will allow multiple terminals to run on one container.
- `docker container exec -it container_id bash` executes an interactive bash shell on the container. It will allow multiple terminals to run on one container.

- `docker start container_id` will stop the container.
- `docker start container_id` will start the container.

- `docker stop container_id` will stop the container.

- `docker ps -a` will show the list of stopped containers.

- `docker rm stopped_container_id` will remove the specified stopped container.

- `docker container prune -f` will the delete all the stopped containers. `f` means by force. Don't ask again.
- `docker container prune -f` will then delete all the stopped containers. `f` means by force. Don't ask again.

- `docker inspect image_name/container_id` will give all the information about the container.

Expand Down Expand Up @@ -92,4 +92,4 @@ Whenever you'll go to the localhost 8080, it will forward it inside the containe

## **Explaining it in a video**

Here you can get an explanation in a video. [19/60 Day of DevOps Challenge](https://www.youtube.com/watch?v=iNJNyqc0628&list=PLptbpfKzsc3BtEki4tHQm5Xmpj8w1_JlM&index=18)
Here you can get an explanation in a video. [19/60 Day of DevOps Challenge](https://www.youtube.com/watch?v=iNJNyqc0628&list=PLptbpfKzsc3BtEki4tHQm5Xmpj8w1_JlM&index=18)

0 comments on commit 88c856c

Please sign in to comment.