Tag: boot2docker

Docker access port running on host

I’m using boot2docker and am running a docker container. I’d like for that docker container to be able to talk to my host who has an open port. I’ve tried hitting the host box, but its going through virtualbox so it seems there needs to be two levels of bridging here to get the ports […]

Docker restart not showing the desired effect

I have a small nginx based test application that I want to run inside a docker container. So I followed the example given here docker installation So I have a foder name restartTest and it contains an index.html file that has this single line in it that says Docker Test 1. I mount this up […]

docker within docker, post http error

I am trying to run docker within docker. The sole purpose is experimental, I am by no means trying to implement anything functional, I just want to check how docker performs when it is run from another docker. I start docker through boot2docker om my mac and then spin up a simple ubuntu image. $ […]

Docker: filesystem changes not exporting

TL;DR My docker save/export isn’t working and I don’t know why. I’m using boot2docker for Mac. I’ve created a WordPress installation proof of concept, and am using BusyBox as both the MySQL container as well as the main file system container. I created these containers using: > docker run -v /var/lib/mysql –name=wp_datastore -d busybox > […]

Docker in debugging mode

I have flume, hdfs container running in boot2docker. I have java code under my /c/users/ directory which is automatically mounted by boot2docker[According to docs]. I copied required jars into running container instead mounting the volume using -v flag. Now i want to debug my code inside the running container. How do i achieve this? Do […]

Docker mongodb – add database on disk to container

I am running Docker on windows and I have a database with some entries on disk at C:\data\db. I want to add this database to my container. I have tried numerous ways to do this but failed. I tried: docker run -p 27017:27017 -v //c/data/db:/data/db –name mongodb devops-mongodb In my dockerfile I have: RUN mkdir […]

Docker initialization on OSX: is a dial error normal?

I ran boot2docker for the first time. At the end of the /usr/local/bin/boot2docker up process, I got the following: Get http:///var/run/docker.sock/v1.19/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? bash-4.3$ Do I worry?

unable to connect to dockerized mysql container locally

I am still a beginner with docker, trying to use docker to help in my development prototyping. My environment is Mac using boot2docker, version as below Client version: 1.3.1 Client API version: 1.15 Go version (client): go1.3.3 Git commit (client): 4e9bbfa OS/Arch (client): darwin/amd64 Server version: 1.3.2 Server API version: 1.15 Go version (server): go1.3.3 […]

How to correctly configure multi-services docker-compose

I have Docker with version 1.13.1 on Windows. And next configuration for compose: version: ‘2.1’ services: discovery: build: ../discovery ports: – 8761:8761 gateway: build: ../gateway ports: – 8888:8888 My gateway service tried to lookup discovery service by localhost:8761, but it failed. I tried to set discovery:8761 but it also failed. It works only with IP […]

Fig doesn't link two containers

Long story short: fig up doesn’t link 2 containers properly when docker rundoes. Scenario: There are 2 containers: one with Cassandra, another with client service. When containers start Client expects to have cassandra hostname in hosts file and be able to reach it’s 9042 port. I use docker’s links to tight containers together. Here is […]

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