Skip to content

Instantly share code, notes, and snippets.

View Richard-Barrett's full-sized avatar
🏠
Working from home

Richard Barrett Richard-Barrett

🏠
Working from home
View GitHub Profile
@efrecon
efrecon / run.tpl
Last active November 19, 2024 10:54
`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}}