-
Notifications
You must be signed in to change notification settings - Fork 2
Docker Container Help
The Docker container for the GoldDigger webtool builds an environment with the requirements for the code. It works similarly to a Python virtual environment. It also contains files to be used with the webtool. For example, the gd-for-analysis folder in the shared drive is mounted within the Docker container so that images from that folder can be accessed within the Docker container at '/usr/src/local-images'.
The purpose of the Docker container is to improve stability and allow for ease of deployment on other machines. The code to build the Docker container includes the necessary versions of Python packages so that updates will not cause errors in the code, and the scripts to build the container can be easily run on any Linux machine to quickly set up the webtool environment.
To add oneself as a Docker user:
$ sudo usermod -aG docker user_name
Log out and log back in to get new permissions, or run:
$ su -username
to create a new shell with new privileges without relogging.
To get a list of all running Docker containers:
$ docker ps
To enter a running Docker container:
$ docker exec -ti container_name /bin/bash
Type $ exit while within a Docker container to leave.
To stop a running Docker container:
$ docker stop container_name
To remove a Docker container:
$ docker rm container_name OR $ docker rm -f container_name