Building docker container

Hi all,

I was trying to build and deploy a docker images and noticed the cloud instance is more limited.

How would one publish docker images using the cloud instance. Is that possible?

This is my current config:

kind: pipeline
name: default

steps:
  - name: test
    image: docker/compose
    volumes:
      - name: docker_socket
        path: /var/run/docker.sock
    commands:
      - ln -s env.template .env
      - docker-compose -f production.yml build
      - echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
      - docker-compose push


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

Hello csgeek,

As mentioned by Brad Allowing access to the host-machine Docker socket would be the equivalent of granting root access to all cloud.drone.io servers, and thats why its restricted, could you please check and confirm if you are unable to mount folders as well(not socket), so that I can check and update accordingly.

Regards,
Harness Support

Use the docker plugin

Thanks. I was trying to be fancier than I needed to be. The autotag feature works great.