There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

xlash123 , in How to take actions on multiple docker containers at once
@xlash123@sh.itjust.works avatar

Just a few shortcuts that may help:

  • docker ps is an alias for docker container ls
  • as long as it can be uniquely identified, a prefix of the container ID can be used instead of copy pasting the entire ID
  • you can use container names instead of IDs
  • tab completion works for container names

As someone else suggested though, docker compose is probably best suited for this job, but hopefully this helps in other situations.

Shareni , in How to take actions on multiple docker containers at once

I’m using docker packages for Doom Emacs. The main one is docker.el. On top of being faster and easier to use than the cli, you can also do some pretty neat stuff like use dired+tramp to browse files and open them in Emacs.

lautan , in Ubuntu is my daily driver but I'm thinking of setting this up on my never used Raspberry PI -- anyone using it? How tough do you think it will be as a first project?

It’s a good idea. I recommend it.

drwho , in Ubuntu is my daily driver but I'm thinking of setting this up on my never used Raspberry PI -- anyone using it? How tough do you think it will be as a first project?
@drwho@beehaw.org avatar

As long as you follow the instructions you should be okay.

wowwoweowza OP ,

Thank you — seems like a nice place to start to move beyond starting a browser.

MangoPenguin , in How to take actions on multiple docker containers at once
@MangoPenguin@lemmy.blahaj.zone avatar

My better way is just using Portainer, select some containers and hit the stop button.

luthis OP ,

If I eventually get around to using a GUI, I’ll check out portainer

FishFace , in How to take actions on multiple docker containers at once

Why create the function _dcl()?

luthis OP ,

I needed a way to pass an argument into the command so it can be used in name=“$1”

FishFace ,

you could instead do:


<span style="color:#323232;">dcl() { docker container ls -aq -f name="$1" }
</span>

in bashrc or wherever you’re setting this up.

FlappyBubble , in what caused you to get into Linux?

Used to use Windows 98 SE. First introduced to Mandrake Linux around 2000. Had no Internet, got the install media from a friend of my father. Barely got it working and couldn’t read English. Went back to Windows XP. Ubuntu came. Began to use it around 2008 for a few years. Back to windows briefly and then Raspberry Pi was launched. Switched to Linux permanently.

Almost went back in 2013 due to Lightroom, gaming and a few work related medical software.

Began to grasp FOSS maturely in 2014 and switched to alterbative software. When Steam launched Proton there was no turning back.

I was obsessed but it has come and gone. Now I’m a bit of a nuissance to friends sllwly switching them to alternative software. My partner gets the worst treatment. Now she uses hardware security keys, assymetric keys auth etc

vaidooryam ,

where do you use asymmetrical keys for auth ?

FlappyBubble ,

Everywhere possible. For SSH sessions, logins on the Internet. PGP and chat apps. All the time.

Bisexual_Cookie , in what caused you to get into Linux?
@Bisexual_Cookie@hexbear.net avatar

Windows kept getting in the way of my productivity (I constantly needed to find workarounds for problems that didn’t exist or were much easier to solve on linux, and I couldn’t customize the ui to my liking) + it lacked basic things like a tabbed file-manager (before win11) and my hardware was getting slower so I jumped ship.

knfrmity , in How to take actions on multiple docker containers at once

You can use the container names to address containers. Whether this is a randomly generated name (docker run… with no --name flag), the compose working dir and service name, or the compose container_name var.

I also rarely use the container command. docker is sufficient, or docker compose … while in the working dir of a given compose stack.

luthis OP , in How to take actions on multiple docker containers at once

You can of course do it this way too, it’s just extra typing:

docker container stop $(docker container ls -qf name=snikket)

cows_are_underrated , in How to see enabled services that have been stopped [systemd]

Don’t you start a service with system tl servicename?

luthis OP ,

Yes,

systemctl start [servicename]

But I wanted to see what I have stopped and not started again

cows_are_underrated ,

OK, that’s nothing I can help you with.

MXX53 , in What are people daily driving these days?

Had been on pop for a while. But lately gnome shell was using a ton of ram and performance was trash, so I moved to fedora with KDE. Been great so far.

lurch , in how can I customise my Ubuntu theme without breaking anything??

As long as you do not use root privileges (indicated by sudo or that password promt pkexec) you cannot destroy the system in a way that can’t be fixed by deleting a few files in the users home directory.

crmsnbleyd , in What are people daily driving these days?
@crmsnbleyd@sopuli.xyz avatar

The answer’s always Debian. I use guix for packages, though it doesn’t have as much stuff on it as nix.

Shihab , in What are people daily driving these days?

Fedora is what keep getting back to every time I get distro hopping fever. Either gnome or KDE It’s wonderful!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines