this post was submitted on 25 Feb 2024
154 points (91.4% liked)

Linux

48245 readers
509 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!

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 8 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.

[–] [email protected] 8 points 8 months ago (1 children)

I strongly suggest that you install portainer if this is your first time playing with docker.

It'll make your life and learning curve dramatically easier.

I'm not suggesting you dont learn how to do it all over CLI (I actually think CLI is way easier and faster to deploy once you get the hang of it), but if you're looking to deploy something right away, I believe portainer is your best bet.

[–] [email protected] 2 points 8 months ago (1 children)

This. I had the same issue, and just about every tutorial focuses on the command line, and I get why... It's way more powerful and actually becomes the standard that people who are using docker repeatedly would need to learn.

That being said, this was my first foray into containerizing things since VMware became a thing. So I needed a UI that felt familiar and helped me understand some of the Dockers specific settings and configurations. This was a godsend in helping me get things up and running, and then later I had to learn how to do it properly with docker compose.

For what it's worth, I still keep my portainer instance running, and use it for some administration stuff like resets, but I think it helps smooth my learning curve. Docker via the command line exclusively pretty much requires you to understand all of the notions and concepts involved.

[–] [email protected] 1 points 8 months ago

That's exactly right. I run UnRaid as my NAS, and not a single docker has been installed from their app store. I also still have Portainer running (at this point I have no idea why anymore, since I haven't used it in over a year) and it barely uses any resources. Portainer was my first shot at docker containers, and I'll always be grateful to the developers. I doubt I would have continued learning Docker if Portainer had not existed.

[–] [email protected] 4 points 8 months ago (1 children)

Docker is a pain in the dick

[–] [email protected] 4 points 8 months ago

Only for people that dont understand the basics

[–] [email protected] 14 points 8 months ago (1 children)

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

Zorin is this, though your choice of Mint is good too. It will not help you understand docker though.

If you're trying to do Audibookshelf on a home server CasaOS made docker super easy for me.

[–] [email protected] 2 points 8 months ago

This is another very good option.

[–] [email protected] 1 points 8 months ago* (last edited 8 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.

[–] [email protected] 2 points 8 months ago (3 children)

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

[–] [email protected] 9 points 8 months ago (2 children)

@llii @Presi300 It was made for apple users and evidently so (it's basically #alacritty and #tmux but closed source, cloud-based and with some AI bullcrap on top of it)

[–] [email protected] 5 points 8 months ago

Ok, this isn't for me than.

[–] [email protected] -1 points 8 months ago (1 children)

I mean, you can call literally any more advanced terminal "alacritty with tmux", but I don't think that's fair. And I for one find Warp's AI features fairly useful. It's also as I mentioned above got a really nice autocomplete and configuration UI. (It's autocomplete is an absolute godsent when it comes to dealing with docker...)

[–] [email protected] 2 points 8 months ago

I would enjoy training a LLM on my aggregated command history and using that for auto completion, or maybe using an open source one trained on a larger set from the community, but I am very uncomfortable sending data about every command (as I'm writing it!) to any company.

[–] [email protected] 1 points 8 months ago

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

[–] [email protected] 9 points 8 months ago* (last edited 8 months ago) (1 children)

Because it requires you to sign in with the cloud and bloated

[–] [email protected] 4 points 8 months ago

Oh, that's a no from me then.

[–] [email protected] 13 points 8 months ago (2 children)

Apt install docker.io

docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

Go to IP:8000 and now you can build docker compose stacks. A far easier way to learn docker.

[–] [email protected] 9 points 8 months ago

OP this is the answer but Ill provide simple steps in case this is not clear enough:

  1. Install docker
  2. Install docker-compose
  3. Install portainer (command from the post above)
  4. open Portainer GUI in browser using IP:8000 (from here you can do everything in GUI)
  5. go to stacks and create a new stack
  6. edit docker-compose for audiobookshelf - modify folder paths for volumes (example - change ./audiobooks:/audiobooks to /path/to/folder:/audiobooks)
  7. paste that in stack and hit deploy
  8. go to IP:13378 to open Audiobookshelf GUI
  9. enjoy
[–] [email protected] 2 points 8 months ago (2 children)

one of my portainer instances completely broke a few months ago because of a failed db migration after an update. i've been using dockge ever since and i'm happy with it. it stores every stack you deploy as a docker-compose file on your regular filesystem, so if it ever breaks you can just edit the files instead

[–] [email protected] 1 points 8 months ago

I never tried dockage, but portainer also stores all docker-compose on filesystem (probably at var/lib/docker/volumes/portainer_data/_data/compose). You can also use "backup" button in GUI to download everything in single tar.gz archive. Folder structure is not the best, but its not hard to figure out. I'm not saying portainer is better though

[–] [email protected] 2 points 8 months ago

Oh that is nice. Yeah I tend not to use portainer nowadays but when I was learning docker it was a godsend. I'll look into dockge though :)

load more comments
view more: next ›