pipeline: build: image: docker environment: - DOCKER_HOST=tcp://docker:2375 commands: - sleep 5 - docker build -t localhost:5000/library:latest . - docker ps services: docker: image: docker:18.09-dind command: ["--storage-driver=vfs"] privileged: true