Skip to content

Instantly share code, notes, and snippets.

View paolo-ziosting's full-sized avatar

paolo-ziosting

View GitHub Profile
@paolo-ziosting
paolo-ziosting / run.tpl
Last active January 18, 2023 09:42 — 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}}