Skip to content

Instantly share code, notes, and snippets.

View koen-db's full-sized avatar

Koen DB koen-db

View GitHub Profile
@koen-db
koen-db / run.tpl
Created April 20, 2022 13:09 — forked from efrecon/run.tpl
`docker inspect` template to regenerate the `docker run` command that created a container
docker run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- if .Runtime}}