Note
This state module is beta; the API is subject to change and no promise as to performance or functionality is yet present
built
corp/mysuperdocker_img:
docker.build:
- path: /path/to/dir/container/Dockerfile
pulled
ubuntu:
docker.pulled
installed
mysuperdocker:
docker.installed:
- hostname: superdocker
- image: corp/mysuperdocker_img
absent
mys_old_uperdocker:
docker.absent
run
/finish-install.sh:
docker.run:
- container: mysuperdocker
- unless: grep -q something /var/log/foo
- docker_unless: grep -q done /install_log
Note: The docker Modules can't be called docker as it would conflict with the underlying binding modules: docker-py
Container should be absent or will be killed, destroyed, and eventually we will remove the grain matching
You can match by either a state id or a container id
Build a docker image from a dockerfile or an URL
Build a new container from an image
For other parameters, please look at the module documentation
You can create it either by specifying :
- an image
- an absolute path on the filesystem
This mean that you need one of those two parameters:
Container should be present or this state will fail
You can match by either a state id or a container id
Pull an image from a docker registry
Remember to look on the execution module to see how to ident yourself with a registry
Run a command in a specific container
XXX: TODO: IMPLEMENT
You can match by either name or hostname
Run a command in a specific container
XXX: TODO: IMPLEMENT
You can match by either name or hostname