Docker: building our own images

In the previous posts (like here , or here ), we always worked with images that already existed, that were created by someone else and made available on Docker hub. In order to see the images that were already downloaded on our host system, run the ‘docker images’ command. root@ubuntu-demo:/home/cloud-user# docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL… Read More »

Docker: start, stop and remove containers

This post is a very short intermezzo just to show how to stop and restart containers and eventually also to remove them. We’ve seen that with ‘docker ps’, we get an overview of the containers that are currently running. Stopping is as simple as issuing the ‘docker stop ‘ command. See below for the execution: root@ubuntu-demo:/home/cloud-user# docker ps… Read More »

Docker: running simple Hello World web application

This post will focus on running an easy web application in a Docker container. We will run a simple web application that displays ‘Hello World’ in a web browser. In order to do so, we will run a Docker container with the training/webapp base image which can be found here. Running the following command (see previous tutorial also)… Read More »

Docker: running basic containers (hello world style)

After installing and updating the docker daemon, it’s about time to get our hands dirty and run some real applications. As you know by know, I always start easy and will fallback onto the Hello World type of applications. In later tutorials, I plan to go a bit deeper and run maybe some Express or Sinatra webapp. That’s… Read More »

Docker: connect to network socket

Introduction By default, the docker daemon listens on a unix socket, a unix domain socket (or IPC socket) is created at /var/run/docker.sock, requiring either root permission, or docker group membership. If you want to have docker listen on a TCP socket, you could do this as well. You could do this as follows (note that is the… Read More »

Docker: install and upgrade (Ubuntu host)

Introduction This is the first post (of probably many more in the near future) to experiment with Docker. Goal is to build step by step a general understanding of container technology. As usual, I won’t elaborate on what containers are and what Docker is as there are many sites available that would probably do a better job on… Read More »

Create a Vagrant Base Box based on Ubuntu

Introduction In this post, we took the first steps with Vagrant. We have been using an image called ‘precise64’ which could be found at the following location: While this is certainly very nice to get started, I was wondering what it would take to fully create and define your own environment. So that’s what this post is… Read More »

Vagrant: AWS (Launch multiple instances)

Introduction A while ago, I provided a short intro on deploying a single virtual machine onto AWS (see this post). Since I was wondering how difficult it would be to deploy multiple EC2 instances I gave this a try as well. It turned out to be relatively simple, below are my findings. Since the Vagrantfile is basically Ruby… Read More »

Vagrant: AWS (Launch single instance)

Introduction In this post, we will get Vagrant working together with AWS instead of Virtualbox (as described here) or DigitalOcean (as described here). As in previous posts, we will use a shell script to install Apache on the EC2 instance automatically and run it as a webserver. Installing AWS plugin In order for Vagrant to work together with… Read More »