Skip to content

Commit e7886c6

Browse files
committed
update 01-docker-commands
1 parent b94b6a8 commit e7886c6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • 07-cloud/03-docker/01-docker-commands

07-cloud/03-docker/01-docker-commands/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,16 @@ Creating new container with same image:
6666

6767
```bash
6868
docker run hello-world
69+
docker ps -a
6970
```
7071

7172
> NOTE: We can name a container like: `docker run --name my-container hello-world`
7273
7374
Let's remove all stopped containers:
7475

7576
```bash
76-
docker ps -a
7777
docker container rm <CONTAINER ID>
78+
docker rm <CONTAINER ID>
7879
docker container prune
7980
```
8081

@@ -87,7 +88,7 @@ docker image rm <IMAGE NAME>:<TAG>
8788
docker rmi <IMAGE NAME>:<TAG>
8889
docker image prune
8990
```
90-
> `prune`: Remove all dangling images, that is, all images with name equals <none>. Dangling images are not referenced by other images and are safe to delete
91+
> `prune`: Remove all dangling images, that is, all images with name equals <none>. Dangling images are not referenced by other images and are safe to delete.
9192
9293
# About Basefactor + Lemoncode
9394

0 commit comments

Comments
 (0)