Skip to content

Instantly share code, notes, and snippets.

View donny-son's full-sized avatar

donny-son donny-son

  • Anywhere, Republic of Korea
  • 04:38 (UTC -12:00)
View GitHub Profile
@donny-son
donny-son / run.tpl
Created March 5, 2023 03:47 — 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}}