luthis

@luthis@lemmy.nz

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

luthis,

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

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

luthis,

Cool, didn’t know that!

Just tested, so you have to cd to the directory with the docker-compose.yml file in it first

luthis,

Is there a way to do this without cd-ing to the directory with the compose file first?

luthis,

<span style="color:#323232;">Usage:  docker stop [OPTIONS] CONTAINER [CONTAINER...]
</span><span style="color:#323232;">
</span><span style="color:#323232;">Options:
</span><span style="color:#323232;">  -s, --signal string   Signal to send to the container
</span><span style="color:#323232;">  -t, --time int        Seconds to wait before killing the container
</span>

Unfortunately no filter here

luthis,

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

luthis,

Dude, I use the CLI all day, every day and I can’t freakin remember half the commands I need.

If it’s something I use often, I’ll make an alias even if it’s just so I can run ‘alias’ in the terminal to get a list of things I use often.

luthis,

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

luthis,

Only if you know what the [service] is. In my case, I’m prone to forgetting so this way I can see what should be running but isn’t

luthis,

Yes,

systemctl start [servicename]

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

luthis,

I think you’re thinking of

systemctl list-units --type=service --state=stopped

status gives the state of the system and a cgroup tree

luthis,

True, now you have the power to find your files manually!

luthis,

Yeah now I stand a better chance of recovering files if something catastrophic happens

luthis,

Thanks! I will keep it up!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #