Skip to content

Instantly share code, notes, and snippets.

View drahosfilip's full-sized avatar

Filip drahosfilip

  • Česká republika
View GitHub Profile
@drahosfilip
drahosfilip / run.tpl
Last active July 31, 2024 12:49 — 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}}
{{- range $l := .Links}}