Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Changes

Jump to: navigation, search

Howto:Docker scenery toolchain

969 bytes added, 20:15, 7 June 2018
no edit summary
== Docker setup ==
 
Firstly, download Docker for your computer. Then check it's working
 
<syntaxhighlight lang="shell">
docker --version
docker info
docker run hello-world # Run a demo containerdocker container ls -a # List all the containers, their names and status. Note that the hello-world is shown as "Exited"
</syntaxhighlight>
== Docker scenery toolchain image ==
 
Now retrieve the terragear toolchain image.
<syntaxhighlight lang="shell">
docker pull flightgear/terragear
docker images
</syntaxhighlight>
 
You can now instantiate containers based on this image. The following command will create a container and then run an interactive bash shell on it.
 
<syntaxhighlight lang="shell">
docker run -i -t flightgear/terragear /bin/bash
</syntaxhighlight>
 
When you exit from the bash shell, the container will be stopped. Use the following commands to list all the containers, start the container up, copy a file into it, and execute an interactive bash shell on it
 
<syntaxhighlight lang="shell">
docker container ls -a
docker container start <container_name>
docker container cp <source_file> <container_name>:<destination>
docker container exec -i -t <container_name> /bin/bash
</syntaxhighlight>
 
Now, when you exit, the container will continue running

Navigation menu