pipeline: build: image: docker environment: - DOCKER_HOST=tcp://docker:2376 commands: - sleep 15 - docker --tls build -t localhost:5000/library:latest . - docker push localhost:5000/library:latest services: docker: image: docker:dind command: ["--storage-driver=vfs"] privileged: true