Create Python Flask Docker Container

Create a folder and change to the folder

Create file

Add following content

Create file requirements.txt, add “Flask” to it.

Now lets create our Python Flask Application

Add following content

To test Flask application locally, install Flask using pip

Now run the application using

Now you will […]

Read More…

Create Kubernetes cluser using gcloud

Login to gcloud with

Set default region

To create a cluser, run

To create a cluster with 2 nodes, run

To specify compute engine type during cluster creation, run

You can also specify scopes, this allow you to give the cluster permission to access other google cloud resources. For example […]

Read More…

Docker Nginx Proxy

Docker Nginx Proxy allow you to run multiple docker containers on same server behind nginx proxy. This is done using To do this, you need a server with port 80 and 443 unused. To setup nginx proxy, run following

This will start nginx proxy. You can modify .env file if you want. Starting […]

Read More…

Docker Build

Build a docker container with Apache docker build command is used to create a docker image from Dockerfile. To create an image, first lets create a working directory and change to the directory.

Create a file with name Dockerfile

Put following content in it

Now build the docker image with

This […]

Read More…

docker search

docker search command allows you to search for images in docker hub. Example

To see results with 4 or more stars, use

docker […]

Read More…

portainer – Web based UI for Docker

Portainer is a web based UI for managing docker. You can run it with command

Now login to portainer with url http://YOUR_SERVER_IP:9000 docker […]

Read More…