Let’s have a whale of a time with Docker.
Get a shell on an alpine:edge image:
#!/bin/bash
docker run -ti alpine:edge /bin/ash
Put the above in a file called ~/bin/alpine and you can just run alpine and have that shell. Do something similar with ~/bin/ubuntu:
#!/bin/bash
docker run -ti ubuntu:latest /bin/bash
The syntax for a bind mount:
docker run -t -i --mount type=bind,src=/root/packages,dst=/oomg debian:bullseye /bin/bash
The /root/packages directory is on the host and the /oomg directory is inside the container.
Tell a Runner container about stuff you’d otherwise pop into /etc/hosts:
docker run --rm -it -v /srv/gitlab-runner/config:/etc/gitlab-runner --add-host brie.cat:192.168.1.160 gitlab/gitlab-runner run
Check out [docker-compose-gitlab].