Docker


Your Tasks in this Chapter are:

  1. Set up a Docker Container
  2. Make a connection to your Container using Go
  3. Set up a docker-compose.yaml
  4. Get a Make-File from Sven (or someone else)

(Use MariaDB as Database)  

Docker has a integrated Tutorial which can be used. Additional Information on Docker roadmap  

Command Usage Tag Usage
Docker build Builds up an image -t <“name”"> Tags a name to your image
Docker compose up builds and runs all the services listed in the compose file -d tells docker compose to run in detached mode(läuft im Hintergrund)
Docker images Shows a list of all docker images
docker rmi <“image_name”> Deletes an image
docker image prune Remove all unused images
Docker ps Schows a list of all containers –all Also shows the stopped
Docker run <““image_name”> Runs the container <“image_name”> –name <“container_name”"> <“image>name”> Create and run a container from an image, with a custom name
docker start <“container_name”> Starts an existing container
docker stop <“container_name”"> Stops an existing container