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…

Docker detach container

Docker container stop once the main program it started with stop running. If you start a docker container with console using -ti option, it stop when you disconnect. To avoid process getting stopped, you can detach from the console. This is done by pressing keys

Followed by

You can just press CTRL key, […]

Read More…

docker images

docker images command list all docker images (blueprints) available on your server.


Read More…


To run a project

Rebuild project and run

To stop all containers in the project

To see list of containers started by docker-compose, run

To get container id for a container started by docer-compose, run


docker-compose: error while loading shared libraries Docker compose start container on boot […]

Read More…

Docker Delete all images

Before you can delete a docker image, you need to delete any container that is based on this image. So see how to delete all docker containers, see Delete all docker containers To list all available docker images, run

To just display image ID only, run with -q option

Now lets pass the […]

Read More…