-
Notifications
You must be signed in to change notification settings - Fork 90
Launcher Container Example
Matthew Marchese edited this page Jun 20, 2023
·
2 revisions
Usable Gentoo container can be created by using the following commands (from Docker Hub user 0xe282b0): -
docker create -v /usr/portage --name portage gentoo/portage
docker run --volumes-from portage --name gentoo -it gentoo/stage3-amd64 /bin/bash
The first command creates a data-only container, named portage, based off the gentoo/portage image, with its /usr/portage directory as a volume.
The second command creates a container, named gentoo, based off the gentoo/stage3-amd64 image, which uses the volume(s) (/usr/portage) from the portage (data only) container.
You can launch the various stage3 containers this way.
The portage data container can be shared between various containers and should be safe for concurrent access as long as an sync isn't happening when an emerge command is run.