Building Docker Images with Drone.io -


I am running my own example in AWS and I want to make it a dock image and put it in my repos . The drone runs its build environment in a Docker Container, so I basically want to make Docker images from inside a Docker Container. I found and saw that you can mount the docker socket. How can I do this with a drone?

  Docker Run-Write-V / / / / / docker sock: /var/run/docker.sock mycompany / buildimage   

Then I Can I run the Docker Build inside the container or do you know about any other CI tool, which I can run my custom script and make Docker images.

Answer is out of date, please check the solution of @ Brade below, Use as context

Install your doc to client

  in your  mycompany / buildimage   

Curl https://get.docker.io/builds/Linux/x86_64/docker-latest-o/usr/ local / bin / donor chmod + x / usr / local / bin / docker < P> Then you can run Docker Build command to use the Dockers host environment

  $ docker -H unix: // / var / run / doc Ker.sock build   

To make it easy and transparent, the DOCKER_HOST environment can be set to usually be set. $ export DOCKER_HOST = "unix: / //var/run/docker.sock" $ Docker Build

No family with drone installation, But this is the way to provide the dock

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -