Skip to content

Instantly share code, notes, and snippets.

View cehbz's full-sized avatar

Charles Haynes cehbz

  • Melbourne, Australia
View GitHub Profile
@efrecon
efrecon / run.tpl
Last active November 12, 2024 10:10
`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}}