NodeJS & Docker: How to change the default Context an App is under: e.g. /myapp/stuff rather than /stuff

I have a NodeJS Express application which currently serves an application at the root of the server when node runs. e.g. The main launch page of the app is currently at: / And script resources are served based on the root: /scripts/mystuff.js We’re deploying this using a simple Docker Script utilizing: docker build -t “myapp-0.1.1” […]

How to bind 1 port to another one inside a Docker container?

I pull a container from the main docker registry that runs a service on port 8080. This same port get exposed in the Dockerfile. I would like to bind the port 80 to the port 8080 inside the container such that if I do that inside the container : curl localhost:80 I get the same […]

Mongodb installation on Docker

I’ve been trying for a while now to install mongodb on my docker image in a variety of ways. I’ve tried using the official image by calling ‘docker pull mongo:latest’ but for some reason the terminal just hangs with no feedback from docker. I’ve also tried various ways to build it through Dockerfile but run […]

How to disable write barrier on docker thinpooldev?

My server has very low disk performance if write barrier is enabled. As it has a disk controller with battery for the cache it is safe to add the “nobarrier” option to /etc/fstab. This makes a huge difference in performance. I want to the same for docker, but I’m using device mapper and not a […]

how to connect a docker container to network

I am newbie to docker. i am running a docker container with ip address at Host Ubuntu OS . when i ping from it ping successful. but another host at network with ip is not able to ping i add nat rule also at *nat -I PREROUTING -d […]

Can't interact with java process when attaching

So I’m running a java program (Minecraft) using CMD / which contains: java -jar .jar The .jar file runs, and with the docker attach command I can view all of the System.out.printLn() output – however, I cannot type into the console as is intended when usually running the jar. How can I fix this?

How do I create an image and run it locally?

I am new to docker and I have looked this up, but none of the guides have made it clear. I have a basic Sinatra app. In its root directory, I have a Dockerfile: FROM <my_quay_ruby_image> # Supplied for me by someone else USER root RUN mkdir /app WORKDIR /app COPY Gemfile* /app/ RUN bundle […]

Docker ENV command no longer valid when using docker run

I am trying to build an Android application within a Docker container, but I’m having trouble setting environment variables when call docker run. I’ve created a DockerFile at ci/Dockerfile which looks like: FROM centos MAINTAINER Jonathan Maltz <> # Install Development Tools RUN yum -y groupinstall “Development Tools” # yum update RUN yum -y update […]

Aurora scheduler doesn't start

I’m trying to deploy Aurora on my Mesos Cluster but when it comes to run aurora-scheduler, it always fails showing a NullPointerException. Here is my setup: Docker container based on Ubuntu 14.04 OpenJDK8 Mesos 0.22.1 Aurora 0.10.0 3 ZooKeeper instances 1 Mesos Master 4 Mesos Slaves I’m pretty sure the ZooKeeper/Mesos setup is up and […]

Container cannot be started from

Running Boot2Docker 1.5.0 under Windows. A container gastrobase exists and can be started manually with docker start gastrobase. When I put this command into /var/lib/boot2docker/, upon startup I get Post http:///var/run/docker.sock/v1.17/containers/gastrobase/start: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? time=”2015-03-28T19:50:51Z” level=”fatal” msg=”Error: failed to […]

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