MediaWiki has been updated to version 1.35.1. Please report any problems here.

Howto:Docker scenery toolchain

From FlightGear wiki
Revision as of 20:15, 7 June 2018 by Stuart (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This article is a stub. You can help the wiki by expanding it.

Docker setup

Firstly, download Docker for your computer. Then check it's working

docker --version  
docker info
docker run hello-world  # Run a demo container
docker container ls -a  # List all the containers, their names and status.  Note that the hello-world is shown as "Exited"

Docker scenery toolchain image

Now retrieve the terragear toolchain image.

docker pull flightgear/terragear
docker images

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.

docker run -i -t flightgear/terragear /bin/bash

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

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

Now, when you exit, the container will continue running