this post was submitted on 25 Feb 2024
151 points (91.3% liked)

Linux

48328 readers
761 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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I installed a few different distros, landed on Cinnamon Mint. I'm not a tech dummy, but I feel I'm in over my head.

I installed Docker in the terminal (two things I'm not familiar with) but I can't find it anywhere. Googled some stuff, tried to run stuff, and... I dunno.

I'm TRYING to learn docker so I can set up audiobookshelf and Sonarr with Sabnzbd.

Once it's installed in the terminal, how the hell do I find docker so I can start playing with it?

Is there a Linux for people who are deeply entrenched in how Windows works? I'm not above googling command lines that I can copy and paste but I've spent HOURS trying to figure this out and have gotten no where...

Thanks! Sorry if this is the wrong place for this

EDIT : holy moly. I posted this and went to bed. Didn't quite realize the hornets nest I was going to kick. THANK YOU to everyone who has and is about to comment. It tells you how much traction I usually get because I usually answer every response on lemmy and the former. For this one I don't think I'll be able to do it.

I've got a few little ones so time to sit and work on this is tough (thus 5h last night after they were in bed) but I'm going to start picking at all your suggestions (and anyone else who contributes as well)

Thank you so much everyone! I think windows has taught me to be very visually reliant and yelling into the abyss that is the terminal is a whole different beast - but I'm willing to give it a go!

(page 2) 50 comments
sorted by: hot top controversial new old
[–] Moobythegoldensock@lemm.ee 3 points 9 months ago

how the hell do I find docker

Type “docker” in terminal and hit enter. Since it’s installed, your system will likely recognize it as a command and populate a help menu for you. You’ll want to visit docker’s website for a full manual.

[–] scratchandgame@lemmy.ml 3 points 9 months ago

Is there a Linux for people who are deeply entrenched in how Windows works

How Windows works is different I think?

I’m not above googling command lines that I can copy and paste but I’ve spent HOURS trying to figure this out and have gotten no where…

You don't need.

I heard you are using a debian-based distro, can you read the man pages for apt?

Then use apt to find docker, and get it.

Once it’s installed in the terminal, how the hell do I find docker so I can start playing with it?

It is not installed in the terminal. It is installed on the system, ON DISK!

docker should be installed on /usr/bin. It is on PATH. Type docker and see what happen. If not, try searching on /usr/bin (on BSDs third party software are separated from base, so docker should be installed on /usr/local/bin)

And the docker service should be started, if not. Use the fucking systemctl to start it. The service name should be docker, if I recall correctly

[–] julianh@lemm.ee 3 points 9 months ago* (last edited 9 months ago) (4 children)

Docker is a ~~developer~~* tool, not really something you should be using without some technical knowledge, or at least some experience in the terminal. It's purely a terminal application, so you just type "docker" in the terminal to use it. You can also type "man docker" to view the manual (which shows arguments and command you can use) but again, that won't help much without some prior knowledge.

The things you're trying to use look like self-hosted web servers, which is a lot to set up for someone who's new to the terminal. I won't stop you if you want, but be warned. I'd recommend using something simpler like cozy, which you should be able to find and download in the software store.

*Edit: it's not only a developer tool, it's used for deployment as well. I lumped the two together. It's still a tool made for people with more familiarity using the terminal though.

[–] Coreidan@lemmy.world 1 points 9 months ago* (last edited 9 months ago)

Docker is a deployment tool. Not a developer tool.

Unless you’re trying to simplify your deployment stack there isn’t really a compelling reason to install it unless you’re trying to learn something new for the fun of it.

With that said you need things to deploy to make it useful. Like a database server, web server, etc.

load more comments (3 replies)
[–] Nibodhika@lemmy.world 3 points 9 months ago

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 an apt 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:

services:
  nextcloud:
    image: lscr.io/linuxserver/nextcloud:latest
    container_name: nextcloud
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - ./config:/config
      - ./data:/data
    ports:
      - 8080:80
      - 443:443
    restart: unless-stopped

Then open a terminal on that folder and run docker compose up -d after that is done open a browser and go to http://localhost:8080 and begin using Nextcloud.

[–] agressivelyPassive@feddit.de 1 points 9 months ago

There are distributions like CasaOS and TrueNAS Scale that try to offer at least a bit of graphical guidance for some popular apps.

Otherwise, you're jumping into the server pool, Windows doesn't really work that different from Linux in that area (in the sense that you can just click on things).

[–] jackpot@lemmy.ml 1 points 9 months ago (1 children)

podman is better but thats just my opinion btw

load more comments (1 replies)
[–] Presi300@lemmy.world 1 points 9 months ago* (last edited 9 months ago) (1 children)

AI can be of great help when learning docker, as it is genuinely super confusing. You don't "find" docker, it's a terminal program that you interact with... From the terminal.

I'm gonna get A LOT of hate for this, but check out Warp terminal. It has a really nice GUI for configuration and really nice autocomplete for commands.

[–] llii@feddit.de 2 points 9 months ago (7 children)

Why should you get hate for the warp terminal? I’ve never used it but it looks quite nice.

[–] Presi300@lemmy.world 2 points 9 months ago

Because it's closed source and requires a sign in. Imo worth it, as it's a very nice terminal.

load more comments (6 replies)
[–] h3ndrik@feddit.de 1 points 9 months ago* (last edited 9 months ago)

Try a more managed and out-of-the-box solution first, then work your way down to the commandline. I'd recommend one of the NAS solutions like openmediavault (if they still do docker) or https://cockpit-project.org/

or Docker for Desktop or podman.io

(maybe lxc containers with proxmox or unraid)

[–] spaghettiwestern@sh.itjust.works 1 points 9 months ago

Docker can be really confusing, but IMO being able to add and remove software without having changes made throughout your system is well worth the effort.

load more comments
view more: ‹ prev next ›