Is there a way to avoid pushing node_modules on every push using Docker?

I’ve got a node_modules folder which is 120MB+ and I’m wondering if we can somehow only push the node_modules folder if it has changed? This is what my docker file looks like at the moment: FROM node:6.2.0 # Create app directory RUN mkdir -p /usr/src/app WORKDIR /usr/src/app # Install app dependencies COPY package.json /usr/src/app/ RUN […]

Unable to deploy docker image from intellij plugin

I am using intellij 2016.1 and docker plugin 2.1.4. I am trying to deploy a simple java container to a remote machine and get error: Failed to deploy ‘gaia-itest Image Id: gaiaadm/gaia-integration-tests’: javax.websocket.DeploymentException: The HTTP request to initiate the WebSocket connection failed This is the output from the deploy log: Deploying ‘gaia-itest Image Id: gaiaadm/gaia-integration-tests’… […]

Unable to Connect to Tensorflow Jupyter Notebook in windows 10

I am getting following error message whenever I try to fire up my jupyter notebook for tensorflow. Browser Error Following is my status of docker in which I have got Docker machines running Docker Images Downloaded I used Docker image ID to run it in docker I wonder why still my jupyter notebook is NOT […]

How do I leverage package maintainers' experience with Docker?

When building Docker images, I find myself in a strange place — I feel like I’m doing something that somebody has already done many times before — and did a vastly better job at it. In most cases, this gut feeling is absolutely right — I’m taking a piece of software and re-describe everything that’s […]

Embed code in docker container or mount it as a volume?

I’m a recent user of docker and I am about to migrate from VM to containers in my production environment. But then, I suddenly realize that what works perfectly for my dev and qa environments is not ideal for production. On my dev and qa, I mount my versioned project folder into a python/php (name […]

Docker: How to source a virtualenv and install requirements.txt?

I’m not sure what I’m missing here. The canonicaliser_api contains my code and a requirements.txt. FROM ubuntu:14.04.2 RUN rm /bin/sh && ln -s /bin/bash /bin/sh RUN apt-get -y update && apt-get upgrade -y RUN apt-get install python build-essential python-dev python-pip python-setuptools -y RUN apt-get install libxml2-dev libxslt1-dev python-dev -y RUN apt-get install libpq-dev postgresql-common postgresql-client […]

kubernetes and debugging it in general

I have a kubernetes cluster setup in AWS. We are using the EC2 container registry to store our docker images on. We have the master/minions all setup and everything seems to be working with the cluster. My spec file is as followed: apiVersion: v1 kind: Service metadata: name: apim-mysql labels: app: apim spec: ports: # […]

executable file not found in $PATH when trying to connect to a container in an AWS ECS EC2 instance

I am having a hard to figuring out how to connect to my Docker container inside my EC2 instance via ssh. Basically, I can get into the server okay and list my container using docker ps. However, I can’t get a shell inside of that container to run some shell scripts I need to get […]

net_adm:ping from one container to another

Playing with Erlang and Docker containers. I created a toy app across two containers: client and server. Here’s the docker-compose.yml file: version: ‘2’ services: client: image: test3_client links: – server server: image: test3_server Here’s the server’s Dockerfile FROM erlang:19.0 ADD . /app WORKDIR /app CMD erl -sname server -setcookie abc -noshell -s test3 start (the […]

Multiple WordPress sites with one shared DB using Docker

I want to run multiple WordPress websites with one shared database using docker. Is it possible to specify a database and set an appropriate volume to a certain sql file to initialize WordPress for each container in its docker-compose.yml file? For example, I have three docker-compose.yml files for a shared container, siteA and siteB. When […]

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