Skip to content

Commit 40f23cb

Browse files
committed
Update README.md Cheat sheets Docker
1 parent ddae4de commit 40f23cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cheat_sheets/Docker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,9 +516,9 @@ There are two main types of volumes. You'll eventually use both, but you'll star
516516
docker volume create to-do-db
517517
```
518518
2. Stop and remove the to-do app container with `docker rm -f <container-id>`, as it is still running without using the persistent volume.
519-
3. Start the to-do app container, but add the `--mount` option to specify a volume mount. Give the volume a name, and mount it to `/etc/todos` in the container, which captures all files created at the path. In your Mac or Linux terminal, or in Windows Command Prompt or PowerShell, run the following command:
519+
3. Start the to-do app container, but add the `--mount` option to specify a volume mount. Give the volume a name, and mount it to `/etc/todo` in the container, which captures all files created at the path. In your Mac or Linux terminal, or in Windows Command Prompt or PowerShell, run the following command:
520520
```shell
521-
docker run -dp 127.0.0.1:3000:3000 --mount type=volume,src=to-do-db,target=/etc/todos getting-started
521+
docker run -dp 127.0.0.1:3000:3000 --mount type=volume,src=to-do-db,target=/etc/todo getting-started
522522
```
523523
[![Items added](https://raw.githubusercontent.com/FJrodafo/University/main/Cheat_sheets/Docker/Assets/Items_added.png)](http://localhost:3000/)
524524
4. Stop and remove the container for the to-do app. Use Docker Desktop or `docker ps` to get the ID and then `docker rm -f <container-id>` to remove it.

0 commit comments

Comments
 (0)