Your Tasks in this Chapter are:
- Set up a Docker Container
- Make a connection to your Container using Go
- Set up a docker-compose.yaml
- 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 |
Use the share button below if you liked it.
It makes me smile, when I see it.