$ docker --version Docker version 19.03.4, build 9013bf583a$ docker-compose --version docker-compose version 1.25.0, build 0a186604- Can be found
Build image: $ docker build --tag image_name .
Docker run the image on container $ docker run --detach -p HOST_PORT:Container_PORT image_name
Docker run image and ssh to the container and remove container on terminal Exit $ docker run -it --rm image_name /bin/bash
Dockercompose command to build and run the container $ docker-compose up --build --detach