ibuildthecloud / systemd-docker

Wrapper for "docker run" to handle systemd quirks
Apache License 2.0
720 stars 111 forks source link

Apt-get Install in debian #51

Open jonathanmmm opened 5 years ago

jonathanmmm commented 5 years ago

Hi,

I installed the package on Ubuntu 18.04 LTS (I believe) withh apt-get Install (or only apt Install, dont know)

But in Debian the package is not found (Stretch), even not when googling it.

Is there a way to Install it that way? Is there a reason that it is not in the repo of debian?

I am trying to use it with bitwarden_rs https://github.com/dani-garcia/bitwarden_rs/issues/452

zymptomLabs commented 5 years ago

you need to clone the repo and build the package then move it to /opt/bin

There's a build.sh file to help you build it

zymptomLabs commented 5 years ago

I gave up on trying to use this and instead just used docker by itself.

You can user a flag to make your container stay on and restart after a system reboot.

First, make sure docker is started and enabled to start on boot

systemctl start docker systemctl enable docker

then add this flag when starting your container or in your docker-compose.yaml file

--restart unless-stopped

https://docs.docker.com/config/containers/start-containers-automatically/

ta-vroom commented 4 years ago

No need to build it, just download the latest release here.

Note: You'll need to make the file executable (chmod +x) and place the full path in the systemd.service file.