Version 1.0.0
Language EN

Docker Host Example

This is an example yaml file that connects to the host machine Docker daemon by mounting a volume. Mounting volumes is restriced for security reasons and must be enabled by a system administrator. Furthermore, mounting the host machine Docker socket is highly insecure, and should only be used in trusted environments.

---
kind: pipeline
name: default

steps:
- name: test
  image: docker:dind
  volumes:
  - name: dockersock
    path: /var/run/docker.sock
  commands:
  - docker ps -a

volumes:
- name: dockersock
  host:
    path: /var/run/docker.sock

...

Getting Help

Mailing List
Search for information in the mailing list archives, or post a question.
Chat Support
Real-time chat support from maintainers and community members.