Can't connect to Docker container

I have a Node.js service built with Restify and I’m trying to use Docker to wrap it all up. My Dockerfile seems to work fine and my DB and Service boots and using docker exec I can curl REST endpoints just fine. However, the ports don’t seem to get exposed. I’m on a Mac if […]

Kubectl: Kubernetes with minikube times out

I have installed minikube and started up its built in Kubernertes cluster $ minikube start Starting local Kubernetes cluster… Kubernetes is available at https://192.168.99.100:443. Kubectl is now configured to use the cluster. I also have kubectl installed $ kubectl version Client Version: version.Info{Major:”1″, Minor:”3″, GitVersion:”v1.3.0″, GitCommit:”283137936a498aed572ee22af6774b6fb6e9fd94″, GitTreeState:”clean”, BuildDate:”2016-07-01T19:26:38Z”, GoVersion:”go1.6.2″, Compiler:”gc”, Platform:”linux/amd64″} But I can’t successfully […]

How to write a kubernetes pod configuration to start two containers

I would like to create a kubernetes pod that contains 2 containers, both with different images, so I can start both containers together. Currently I have tried the following configuration: { “id”: “podId”, “desiredState”: { “manifest”: { “version”: “v1beta1”, “id”: “podId”, “containers”: [{ “name”: “type1”, “image”: “local/image” }, { “name”: “type2”, “image”: “local/secondary” }] } […]

Listing the tags of a docker image on a Docker hub through the HTTP API

I would like to list the tags of a docker image official docker hub through its HTTP interface but I am a bit confused. As there seems to two versions of them: https://docs.docker.com/v1.6/reference/api/registry_api/ https://docs.docker.com/v1.6/registry/spec/api/ I managed to get them through sending a GET request to this endpoint: https://index.docker.io/v1/repositories/{my-namespace}/{my-repository}/tags along with basic auth credentials. I am […]

How to run docker to other server machine

I have code server.js ‘use strict’; const express = require(‘express’); // Constants const PORT = 8080; // App const app = express(); app.get(‘/’, function (req, res) { res.send(‘Hello world\n’); }); app.listen(PORT); console.log(‘Running on http://localhost:’ + PORT); dockerfile FROM node:6.5.0 WORKDIR /app RUN npm install nodemon -g COPY package.json /app/package.json RUN npm install COPY server.js /app […]

Using Docker to build an image for Node, my Express based Node app, MongoDb, and NodeBB, connected via Passport

I’ve just been introduced to Docker and the concept is awesome. I’ve found simple Dockerfiles for building an image for MongoDB and Node and was wondering, do I just combine those images together to make one image that has my project which is a combination of a custom Node app (built on Express), a NodeBB […]

How to handle database storage/backup and application logs with many linked containers?

I’ve just created my first dockerized app and I am using docker-compose to start it on my clients server: web: image: user/repo:latest ports: – “8080:8080” links: – db db: image: postgres:9.4.4 It exposes REST API (node.js) over 8080 port. REST API makes use of Postgres database. It works fine. My idea is that I will […]

What are the advantages of docker containers over statically linked EXEs?

I am struggling to understand exactly what practical problem docker solves. Docker prescribes “one process per container”. If your container only encapsulates one program/process, then what advantage is there over a statically linked executable? Doesn’t this do basically the same thing (encapsulate a program) in a much more simple and efficient way?

Docker shows no containers or images after system reboot

Help! I can’t get docker to recognize the images and containers it had just a moment ago. After running apt-get update && apt-get dist-upgrade and rebooting, I see docker reporting no data: $ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES $ docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE But […]

Jenkins-node as docker container

The jenkins-node is a docker-container on which the jobs are run. A jenkins-job running in the dockerized jenkins-node checks the project of svn/git and runs the build and test in other docker-containers launched by the job. In doing so the jenkins-job mounts via “docker run -v : …” files/directories from the checked out project into […]

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