Docker to Kubernetes Journey
Published in
5 min readDec 28, 2018
From Zero to Hero
Prerequisites
To follow this tutorial, you will need the following:
- One Ubuntu 16.04 server
- An account on Docker Hub ( We’ll publish our first Docker Image to Docker Hub)
- Amazon AWS account (https://aws.amazon.com)
How to install and use docker?
Image building
We are going to build our image.
We are going to use three files:
- A Dockerfile, it describes the way our image must be built,
- An index.php document, our PHP page which displays Hello World.
- Our logo to add some colour to the page.
- Clone — https://github.com/hariom282538/docker-images
Put those files into a directory on your system:
mkdir helloworld && cd helloworld
git clone https://github.com/hariom282538/docker-images.git
cd docker-images/
docker build -t hello-world .
docker run -it -p 80:80 hello-world
Perfect, we can kill our container with a Ctrl+c
in the console and go to the next section! Yeeeaahhh!