Tag: boot2docker

Using ssh-agent with docker

I would like to use ssh-agent to forward my keys into the docker image and pull from a private github repo. I am using a slightly modified version of https://github.com/phusion/passenger-docker with boot2docker on Yosemite. ssh-add -l …key details boot2docker up Then I use the command which I have seen in a number of places (i.e. […]

Docker on Windows (Boot2Docker) – certificate signed by unknown authority error

I am running Docker on Windows (boot2docker + Oracle Virtual Box). In my corporate environment they modify the certificates so that the CAs are the company’s self signed CA’s. Thus, the chain ends up like this: Company’s CA |__ Company’s Intermediate CA |__ Docker Certificate When I try to run any command, such as: docker […]

docker repository name component must match

I am trying to build my image using this plugin: https://github.com/spotify/docker-maven-plugin#use-a-dockerfile When I run mvn clean package docker:build I get this error: [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.2.3:build (defa ult-cli) on project demo: Exception caught: Request error: POST https://192.168. 99.100:2376/v1.12/build?t=DevOpsClient: 500: HTTP 500 Internal Server Error -> [ Help 1] When I check the docker […]

Boot2Docker on Mac – Accessing Local Files

I’ve just set up boot2docker on my Mac. How do I go about mounting a local directory on my Mac so that it’s accessible all the way through to a running Docker container? Thanks for your help!

Keep getting Could not read CA certificate when trying to start docker

I am attempting to migrate from boot2docker to docker-machine. I followed the directions here to install docker but I keep getting the following message: Could not read CA certificate “/Users/<useraccountfolder>/.boot2docker/certs/boot2docker-vm/ca.pem”: open /Users/<useraccountfolder>/.boot2docker/certs/boot2docker-vm/ca.pem: no such file or directory when I run most any docker command.

Docker Node JS Installation

I am brand new to docker and I am attempting to follow the node js tutorial that they have listed: https://docs.docker.com/examples/nodejs_web_app/ I follow this tutorial and everything seems to work great until the test portion and I can’t curl to the port specified. $ curl -i localhost:49160 curl: (7) Failed to connect to localhost port […]

Docker-machine – IP address conflict

Here are my environment: Windows 7 64 bit Docker for windows When I create new machine, I encounter the IP address conflict: And the console is stuck at phase starting VM Creating VirtualBox VM… Creating SSH key… Starting VirtualBox VM… Starting VM… Furthermore, when I press Ctrl-C to stop the script and run eval “$(docker-machine […]

Can we pass ENV variables through cmd line while building a docker image through dockerfile?

I am working on a task that involves building a docker image with centOs as its base using a Dockerfile . One of the steps inside the dockerfile needs http_proxy and https_proxy ENV variables to be set in order to work behind the proxy. As this Dockerfile will be used by multiple teams having different […]

How to copy file from host to container using Dockerfile

I have written a Dockerfile which looks like this FROM ubuntu:12.04 RUN apt-get update RUN apt-get install -y wget Now I’m having a file called abc.txt in my host machine. How can I copy it to this container. Is there any step that I can add in Dockerfile which copy from Host to Container.

boot2docker on windows missing apt-get / package manager

I’m in boot2docker. I’m not entirely sure I understand it completely, but it seems to be needed for a project I’m on. I’ve ssh’d in, and I tried to do a make on our project, but I got make: not found Then I tried a: apt-get install make And got apt-get: not found Tried googling, […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.