this post was submitted on 25 Feb 2024
144 points (91.4% liked)
Linux
48413 readers
1103 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Ok, so I don't know the specifics, this might not be entirely accurate, but this is a general step-by-step guide for Debian based distros like Mint.
Install docker
The first thing you need to do is install docker, this can be done via whatever GUI you use for a package manager or via the terminal using
sudo apt install docker
(I'm not sure docker is the name of the package, I'm just guessing, you can do anapt search docker
to see what's available)Add yourself to dockers
This is likely not needed on Mint, but just in case your user should be in the docker group, i.e. run
sudo gpasswd -a docker
. I'm almost sure Mint does this by default.Enable docker systemd
This also might not be needed, again I'm almost sure Mint does this for you when you install docker, but just in case the command is
sudo systemctl enable docker
Reboot
Because there have been changes to your user groups you need to relogin, easier to reboot.
use docker
Now you have a system with docker, you can test this by running the following command
docker run hello-world
, if you see a bunch of text that contains "Hello from docker" docker is working.setup a docker-compose file
Create a folder, and in that folder create a text file called
docker-compose.yaml
in that file. This file will tell docker what you want to run, for example to have Nextcloud (which is an awesome self-hosted drive alternative. I'm not going to teach you the specific services you want, you can figure those out by looking at their page on the linuxserver page or something) you can look here https://hub.docker.com/r/linuxserver/nextcloud on how to write your docker-compose file, for example you could write:Then open a terminal on that folder and run
docker compose up -d
after that is done open a browser and go tohttp://localhost:8080
and begin using Nextcloud.