Skip to content

Commit

Permalink
Remove the containers once you exit
Browse files Browse the repository at this point in the history
Exiting after using `docker run` leaves behind stopped containers. Adding `--rm` tells Docker to delete them after exiting.
  • Loading branch information
Jamesking56 authored Oct 21, 2019
1 parent 945eb37 commit 4d121cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ A development version of the AUR package is also [available](https://aur.archlin
1. Run the container

```sh
docker run -it -v \
docker run --rm -it -v \
/var/run/docker.sock:/var/run/docker.sock \
-v /yourpath:/.config/jesseduffield/lazydocker \
lazyteam/lazydocker
Expand All @@ -138,7 +138,7 @@ A development version of the AUR package is also [available](https://aur.archlin
- You might want to create an alias, for example:

```sh
echo "alias lzd='docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /yourpath/config:/.config/jesseduffield/lazydocker lazyteam/lazydocker'" >> ~/.zshrc
echo "alias lzd='docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v /yourpath/config:/.config/jesseduffield/lazydocker lazyteam/lazydocker'" >> ~/.zshrc
```


Expand Down

0 comments on commit 4d121cf

Please sign in to comment.