注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Docker"

From Funtoo
Jump to navigation Jump to search
(Created page with "Funtoo is now uploading Dockerized stages to [https://hub.docker.com/u/funtoo our Docker Hub account]. Here's how to use them. === Setting up Docker === To set up docker, yo...")
 
Line 11: Line 11:
{{console|body=
{{console|body=
$ ##i##docker pull funtoo/stage3-intel64-skylake
$ ##i##docker pull funtoo/stage3-intel64-skylake
}}
=== Launching an Image ===
Since Funtoo docker images are set up to run OpenRC by default, you can simply start them in the background and will continue to run. Run an image in the background with the {{c|-d}} option:
{{console|body=
$ ##i##docker run -d funtoo/stage3-intel64-skylake
}}
=== Entering an Image ===
To enter a bash shell inside the image, use {{c|docker ps}} to grab the {{c|CONTAINER ID}} and then specify it with the following {{c|docker exec}} command:
{{console|body=
$ ##i##docker exec -it ba1f3755fa03 /bin/bash
#
}}
}}

Revision as of 22:27, July 11, 2020

Funtoo is now uploading Dockerized stages to our Docker Hub account. Here's how to use them.

Setting up Docker

To set up docker, you will need to emerge app-emulation/docker, start up the docker startup script and ensure that your user is in the docker group.

Grabbing the image

To grab an image, pick the image you want and pull it:

user $ docker pull funtoo/stage3-intel64-skylake

Launching an Image

Since Funtoo docker images are set up to run OpenRC by default, you can simply start them in the background and will continue to run. Run an image in the background with the -d option:

user $ docker run -d funtoo/stage3-intel64-skylake

Entering an Image

To enter a bash shell inside the image, use docker ps to grab the CONTAINER ID and then specify it with the following docker exec command:

user $ docker exec -it ba1f3755fa03 /bin/bash
root #