Docker 101

Docker 101

what is a docker image ?

A docker image is made up of file systems layered over each other. At the base is a boot file system, bootfs, which is similar to a linux boot file system.

Docker commands

docker container ls 
docker ps 
docker ps -a
docker images
docker images -a

Running an ubuntu Image :

docker run -it  ubuntu:latest bash

Creating a Custom Image from a Base Image

FROM python:3

COPY app.py .

CMD ["python3", "app.py"]