FAQ
Who Can Run Docker Commands?
By default, Pigsty adds two users to the Docker operating system group. One is the management user that runs the playbook: the SSH login user on the target node. The other is the admin user specified by node_admin_username.
All users in this group (docker) can manage Docker using the docker CLI command.
To let another user run Docker commands, add that OS user to the docker group:
Working Through a Proxy
During Docker installation, Pigsty checks for proxy_env. If this parameter exists, Pigsty writes the HTTP proxy configuration to /etc/docker/daemon.json.
Docker will use this proxy server when pulling images from upstream registries.
Tip: Run configure with -x to copy the proxy settings from your current environment into proxy_env.
Using Mirror Registries
If DockerHub access is slow in mainland China network environments, you can prioritize:
- Configure available mirrors with
docker_registry_mirrors - Or configure
proxy_envto pull via proxy - Or directly use other public registries (such as
quay.io)
For example:
Adding Docker to Monitoring
During installation, run the docker_register subtask for the target nodes to register Docker for monitoring. You can also use its alias tag, add_metrics:
Using Software Templates
Pigsty provides ready-to-use software templates for Docker Compose. Install the Docker module before you start these templates.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)