Skip to content

Instantly share code, notes, and snippets.

@efrecon
efrecon / docker_tags.md
Last active February 8, 2024 13:19
Get tags for Docker registry image

Docker Tags

[DEPRECATED] Active as a real project instead, development as a gist has been discontinued.

This "script" implements a single function to list the existing tags at the Docker [hub] for a given public image.

@efrecon
efrecon / run.tpl
Last active May 30, 2024 03:12
`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}}