Bind docker container to IP on OSX

On Ubuntu I do something like this sudo ip addr add dev eth0 docker run -p -d foo/bar /sbin/my_init Then I can open up a browser at How would I accomplish the same thing on OSX? (OSX has no ‘ip addr’ and this boot2docker-vm thing)

Yesod Persona authentication problems when using Dockerized MongoDB

We are developing an application using Yesod and MongoDB and we are having users authenticate using Mozilla Persona. However we have a development database that we use across development machines and also on our staging machine. Anytime development or testing data is added or removed from staging we synchronize it with the development machines using […]

Access container from outside (without port mapping)

I’m using Docker 1.13.1 on my Centos 7.3 virtual machine and run a container based on Centos 6 on it. My problem is that I want to acccess my container from outside of the virtual machine but without port mapping! Is there a way to access my container via IP or hostname? Maybe I could […]

Docker volumes mounting on Windows 8 is not working

Context I want to run a Docker Compose application on a Windows 8. I made it under a Ubuntu 16.04 and it’s perfectly working on it. This Docker Compose run: nginx php-fpm The two containers use volumes. Files My .env file: COMPOSE_CONVERT_WINDOWS_PATHS=1 APPLICATION_PATH=//C/Users/my_user/Documents/Development/my_application My docker-compose.yml file: version: ‘2’ services: web: build: ../application-web/ ports: – “80:80” […]

Dockerfile won't run script as user with sudo rights

I have this Docker file… FROM ubuntu:14.04 MAINTAINER Sindhu S # RUN apt-get update && apt-get -y install sudo wget bash git && rm -rf /var/cache/apt-get/archives/* RUN adduser –disabled-password –gecos “” scrollback RUN adduser scrollback sudo RUN echo ‘scrollback ALL=(ALL) NOPASSWD:ALL’ >> /etc/sudoers RUN mkdir -p /home/scrollback && chown -R scrollback:scrollback /home/scrollback WORKDIR /home/scrollback/ […]

Understanding the add command on dockerfile for Ubuntu

Does ADD command copy my directory files (including sub-directories files) into a new destination?

Docker container's networkMode changes to default when running the container

Docker version – v1.12 OS – Ubuntu 14.04.4-LTS Clustering mode – Swarm Created an overlay network: $ docker -H tcp:// network create –driver overlay –subnet= my-net Creating the container: [POST] http://localhost:2375/container/create?name={id} { “Env”: [ “env1=val1” ], “Cmd”: [ “/”, “launch ], “Image”: “<image>”, “Volumes”: { “/tmp” : {} }, “HostConfig”: { “NetworkMode”: “my-net” } } […]

How to execute a command on a running docker container?

I have a container running hadoop. I have another docker file which contains Map-Reduce job commands like creating input directory, processing a default example, displaying output. Base image for the second file is hadoop_image created from first docker file. EDIT Dockerfile – for hadoop #base image is ubuntu:precise #cdh installation #hadoop-0.20-conf-pseudo installation #CMD to […]

How to share Mac screen to Linux docker container?

I want to run odesk time tracker (a Qt4 app) which captures your screen and keystrokes for freelance work logging. But I don’t trust it and want to sandbox it. On Linux, there are ways to run GUI items on docker container and forward X11 to Linux host. Can I do this on mac? The […]

Cannot access tomcat8 server running in docker container from host machine

I am trying to connect to a web app running on tomcat8 in a docker container. I am able to access it from within the container doing lynx http://localhost:8080/myapp, but when I try to access it from the host I only get HTTP request sent; waiting for response. I am exposing port 8080 in the […]

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