Docker Tips

Here are some tips for using dropbox with fuego:

Starting [edit section]

After the container is created, you should start it by running:

./fuego-host-scripts/docker-start-containter.sh

This will execute the container indicated by the last_fuego_container.id (which is usually what you want)

special privileged container [edit section]

To run the container in a special privileged mode that allows access to host USB devices (needed for accessing Android targets and USB-SERIAL devices), create it instead with:
./fuego-host-scripts/docker-create-usb-privileged-container.sh

To add a new device to be accessible inside the docker container, please edit the following line in docker-create-usb-privileged-container.sh:

CONTAINER_ID=`sudo docker create -it --privileged -v /dev/bus/usb:/dev/bus/usb -v /dev/ttyACM0:/dev/ttyACM0 ... --net="host" fuego`

With above, only "ttyUSBx" and "ttyACM0" will be detected and accessible inside the docker container.

NOTE: as of February, 2017, this script was in the next branch of the fuego repository.

Operations while running [edit section]

Exiting [edit section]

To exit the docker container, just exit the primary shell that started with the container was started.

Persistence [edit section]

The Fuego container uses docker volume mounts so that some files persist in the host filesystem, even when the container is not running.

In the host system, these are under fuego-ro and fuego-rw in the directory where the container was created. (This is usually in the top level of the fuego repository.)

Here are some files that persist:

How to determine if you're inside the container [edit section]

cleaning up old images [edit section]

I build lots of docker images, and they leave lots of data around.