Keep containers around for quick rollback + restarting

Now need to deal with pruning.
This commit is contained in:
David Heinemeier Hansson
2023-01-08 11:45:46 +01:00
parent e8fc046537
commit 73019bedfb
4 changed files with 22 additions and 7 deletions

View File

@@ -1,12 +1,16 @@
class Mrsk::Commands::Traefik < Mrsk::Commands::Base
def start
def run
"docker run --name traefik " +
"--rm -d " +
"-d --restart unless-stopped " +
"-p 80:80 " +
"-v /var/run/docker.sock:/var/run/docker.sock " +
"traefik --providers.docker"
end
def start
"docker container start traefik"
end
def stop
"docker container stop traefik"
end