X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=portage%2FREADME.md;h=2fbac742b48ed2a66cee9ffd02f652b0886ae9d0;hb=838368d9410029089f2a7b6fd0a9639d959f9dbf;hp=43a5bc90734483c9c3a1cfcb6bd39a169d9a375e;hpb=ee3111cf020ca9d2e252e176d4f82d9ab0fadb5b;p=dockerfile.git diff --git a/portage/README.md b/portage/README.md index 43a5bc9..2fbac74 100644 --- a/portage/README.md +++ b/portage/README.md @@ -1,11 +1,11 @@ Use volume mounts to avoid including the Portage tree in your images: - $ docker run -d -name portage wking/portage + $ docker run -d --name portage wking/portage This exports a [VOLUME][] which you can [mount][volumes-from] from another container: - $ docker run -volumes-from portage -i -t wking/gentoo /bin/bash + $ docker run --volumes-from portage -i -t wking/gentoo /bin/bash d1a49abc4b3c / # ls /usr/portage/ app-accessibility dev-python mail-mta sci-mathematics … @@ -26,7 +26,7 @@ the first container: Now kill that container and spin up another one: - $ docker run -volumes-from portage -i -t wking/gentoo /bin/bash + $ docker run --volumes-from portage -i -t wking/gentoo /bin/bash 187adaf8babd / # emerge -pv netcat … These are the packages that would be merged, in order: @@ -47,7 +47,7 @@ promptings for reading the news on both `d1a49abc4b3c` and You can use container volumes even if their container is not running. For example: - $ docker run -name portage wking/portage true + $ docker run --name portage wking/portage true However, it may be useful to leave the container running so you don't remove it up by accident.