Docker Build

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 will create a docker image with […]

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. https://portainer.io/ 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…

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…

Delete all docker containers

We need to use diff commands to to do this. First lets get list of all containers.

This will list all docker containers available. Before we can delete, we need to stop them. To stop all running containers, use

To delete all containers, run

[…]

Read More…