docker
todo
ENTRYPOINT vs CMD
The idea is: it should run with AND without the command name. Example with yamllint:
docker run –rm local/yamllint –versiondocker run –rm local/yamllint yamllint –version
See: https://hub.docker.com/r/pipelinecomponents/base-entrypoint
docker utils
- exemple :
docker volume cphttps://github.com/gdiepen/docker-convenience-scripts/blob/master/docker_clone_volume.sh
dockerignore
labels
What to do with labels?
- https://github.com/microscaling/microscaling/blob/master/Makefile : Makefile for docker builds with labels and whistles
What others do with labels? Examples:
- https://docs.openshift.com/container-platform/3.11/creating_images/metadata.html automated workflow labels
- https://github.com/projectatomic/ContainerApplicationGenericLabels automated workflow labels
Tools :
- https://github.com/garethr/docker-label-inspector : linter for Docker Labels
Documentation:
tags
-
- Basic example with the hello-world image
healthcheck
shell-fu
misc
- https://pythonspeed.com/articles/importerror-docker/ : python in docker pitfalls
- https://github.com/github/super-linter/blob/master/Dockerfile : 50
FROM, thenCOPYthe world into a finalalpineimage.