A few useful Docker commands to build, run and remove docker images/containers

# build 'layer' image using Dockerfile
docker build -t layer -f Dockerfile .

# To run an interactive bash session in a container
docker run -it lambci/lambda:build-python3.7 bash

# run docker image in a detached mode (doesn't wait for command completion)
docker run -d layer false

# remove docker container
docker rm layer

# list all containers (both stopped and running)
docker ps  -a

# remove docker image
docker image rm layer