I never understood how to use Docker, what makes it so special? I would really like to use it on my Rapsberry Pi 3 Model B+ to ease the setup process of selfhosting different things.
I’m currently running these things without Docker:
- Mumble server with a Discord bridge and a music bot
- Maubot, a plugin-based Matrix bot
- FTP server
- Two Discord Music bots
All of these things are running as systemd services in the background. Should I change this? A lot of the things I’m hosting offer Docker images.
It would also be great if someone could give me a quick-start guide for Docker. Thanks in advance!
You just need the docker and docker-compose packages. You make a
docker-compose.yml
file and there you define all settings for the container (image, ports, volumes, …). Then you rundocker-compose up -d
in the directory where that file is located and it will automatically create the docker container and run it with the settings you defined. If you make changes to the file and run the command again, it will update the container to use the new settings. In this commanddocker-compose
is just the software that allows you to do all this with thedocker-compose.yml
file,up
means it’s bringing the container up (which means starting it) and-d
is for detached, so it does that in the background (it will still tell you in the terminal what it’s doing while creating the container).