Usage
Get started with Docker in pigsty: install, uninstall, download, mirror, proxy, images and more.
Deploy docker on Pigsty managed nodes: Configuration | Administration | Playbook | Dashboard | Parameter
Docker is a popular container service which provides standardize software deliver solution.
Docker module is different from other modules, which does not require pre-configuration to install & enable.
Just run the docker.yml
playbook on any Pigsty managed node.
But if you wish to add docker daemon as prometheus monitoring target, you have to specify the docker_enabled
parameters on those nodes.
Consider using docker mirror registry, log in with:
docker login quay.io # entering your username & password
Docker monitoring is part ot NODE
module’s responsibility, to register docker target to prometheus.
You have to define docker_enabled
on nodes, then re-register them with:
./node.yml -l <selector> -t register_prometheus
Pigsty has a series of built-in docker compose templates.
There are 4 parameters about DOCKER
module.
Parameter | Section | Type | Level | Comment |
---|---|---|---|---|
docker_enabled |
DOCKER |
bool | C | enable docker on this node? |
docker_cgroups_driver |
DOCKER |
enum | C | docker cgroup fs driver: cgroupfs,systemd |
docker_registry_mirrors |
DOCKER |
string[] | C | docker registry mirror list |
docker_image_cache |
DOCKER |
path | C | docker image cache dir, /tmp/docker by default |
Get started with Docker in pigsty: install, uninstall, download, mirror, proxy, images and more.
5 parameters to customize the Docker module as needed.
How to manage docker with ansible/pigsty playbook
Pigsty Docker module metric list
Pigsty Docker module frequently asked questions
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.