Symbolic Link Host to Docker Container

Well, Basically I wanna create a Symbolic link “ln -s” from my host to my container. To sum up: the host folder .m2 of the host must have a Symbolic link to the .m2 folder inside my container, something like: $ ln -s containerIp:/root/.m2 myContainerAlias I’ve seen the below posts but they didn’t help me […]

Mounting a single file from a Docker data volume in a Docker

I’m trying to mount a single file from a Docker volume in a container when using “docker run”. I’ve been able to mount an entire volume as a directory, e.g: docker run -v my_volume:/root/volume my_container I’ve also mounted single files from the physical machine, e.g: docker run -v /usr/local/bin/docker:/usr/local/bin/docker Is there a way?

using docker/containers + not able to visit server in browser

I am running tomcat in my docker container. My question is why can I go here in cygwin (using curl or lynx) and not in my firefox browser? I am on a windows7 machine with cygwin and boot2docker my ip on my windows machine (doing an ipconfig /all in cygwin) my boot 2 […]

How can you get Grunt livereload to work inside Docker?

I’m trying to use Docker as a dev environment in Windows. The app I’m developing uses Node, NPM and Bower for setting up the dev tools, and Grunt for its task running, and includes a live reload so the app updates when the code changes. Pretty standard. It works fine outside of Docker but I […]

link_to strips port from site hosted in container

This is a bit of a tricky situation. I’m testing deployment of a Laravel application which I’ve recently containerised. I’ve made a container based on php, which runs Apache inside itself to serve the application. If I simply run this container, bound to port 5000, then link_to(‘/login’) correctly generates a link pointing to localhost:5000/login. However, […]

How can I create a docker volume container in specific directory?

I have an SSD drive mounted at /ssd. I’d like to create a docker volume container for a MySQL server that will be run in a container, and have it use this SSD drive for data storage. It seems that by default, docker creates data volume containers in /var/lib/docker. How can I force docker to […]

How to let a non-root process in a Linux docker container bind to a <1024 port?

Any ideas on how to let a non-root process in a Linux docker container bind to a <1024 port? setcap ‘cap_net_bind_service=+ep’ won’t work on aufs and I would like people to be able to use my dockerfile with any storage driver. I can of course just listen on a >1024 port in the container and […]

Share and update docker data containers across containers

I have the following containers: Data container which is build directly in from a github repo, basically is a website. FPM container NGINX container The three of them are linked together and working just fine. BUT the problem is that every time I change something in the website (Data container) it is rebuilt (of […]

Access Graylog Docker container on url subpath

I tried to access graylog on a subpath. For example like I’m using NGINX as a reverse proxy to pass a request to /graylog to my graylog instance. The graylog instance is setup using the official graylog docker image. My location in the NGINX config: location /graylog { # TODO this does not work […]

VisualVM unable to connect remote tomcat in docker with RMI

I am runing tomcat in a docker container on a remote machine. Now I want to use VisualVM to connect. My docker start command: docker run -d –name tomcat -p 26000:8080 -p 9090:9090 -p 9091:9091 -v /data/docker/tomcat/webapps:/data/tomcat/webapps -v /data/docker/tomcat/logs:/data/tomcat/logs -e CATALINA_OPTS=”-Xms2048M -Xmx2048M -XX:MaxPermSize=256M -Djava.rmi.server.hostname=″ my.private.hub/tomcat:latest And the catalina.log: 13-Mar-2015 10:29:56.615 INFO […]

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