Can't connect to cassandra cluster, but can connect to single node?

I am facing some weird situation here while trying to connect a external Play Application to a cassandra cluster (which is running on a docker container over mesos). The problem is: If I only have a single Cassandra node, I can connect to it properly from the Play application. BUT, If I add a second […]

Cron job break other foreground server in docker

In order to start selenium server on start, I have to put entry_point.sh under /opt/bin but if I uncomment the cron command CMD cron && tail -f /var/log/cron.log The server won’t run anymore. I couldn’t figure out why it will be broken This is my cron file SHELL=/usr/bin/zsh * * * * * echo $PATH […]

Docker unable to setup rails up with postgresql

I am new to docker . I try to setup my rails app with docker . I use postgresql for database . I use fig for this. when i run fig run web rake db:create i got error “could not connect to server: Connection refused Is the server running on host “localhost” (::1) and accepting […]

External Server mysql_connect No route to host

I am running PHP inside of the official PHP Docker container found here: https://github.com/docker-library/php I am trying to get my application to connect to an external MySQL server using the old mysql_connect function as that’s what our application uses. When trying a very simple script it yields the error: Warning: mysql_connect(): No route to host. […]

Docker + NGINX + SSL

I have a trivial NGINX proxy config (below) that uses my new SSL cert (first time I’m trying this). I’ve deployed this via Docker extending the standard “nginx” image. I’m reasonably sure my InstantSSL cert file is valid, but the server isn’t returning a valid SSL connection. I’m getting the following error: $ openssl s_client […]

NGINX Reverse Proxy not working

I am linking docker containers to an NGINX container with the following configuration. node1 resolved to an entry in **/etc/hosts is all you really need to know for this part worker_processes 4; events { worker_connections 1024; } http { upstream node_app { server node1:8080; } server { listen 80; location / { proxy_pass http://node_app; } […]

How to have multiple django requirements file mentioned in fig file for docker deployment across dev, staging and prod servers?

I just wrote my first fig file. It makes working with docker really awesome. I want fig to launch my local, staging, and prod containers as well. So I wrote 3 different fig files. fig-dev.yml, fig-stage.yml and fig-prod.yml. The three yml files contain the images that needs to be pulled as per the requirements of […]

Using Docker Kitematic, how can I switch to different docker machine?

I’m new to Docker (just started learning today). I’m using docker 1.9.1 on MacOSX 10.10.5. Apparently, there’s this new “docker-machine” tool that replaces the deprecated “boot2docker“. I’m not really sure what either are, but since docker-machine is so new, there doesn’t seem to be a lot out there or people experiencing my specific set of […]

Docker java:7 image apt-get update cyclic dependencies

I am using the official java:7 docker image. When I run apt-get update on it, it throws an error: E: The method driver /usr/lib/apt/methods/https could not be found. N: Is the package apt-transport-https installed? So when I run: apt-get install apt-transport-https It says unable to locate the package Reading package lists… Done Building dependency tree […]

Docker build on Bluemix Containers can't find Dockerfile

I’m trying to build a docker image remotely with Bluemix using the following command: cf ic build -t dude -f docker/production/Dockerfile . However I consistently receive the error: Sending build context to Docker daemon 32.57 MB Error response from daemon: Build aborted with error: “filename ‘Dockerfile’ not found” Moving the Dockerfile to the root of […]

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