Skip to main content

Building a first setup

Bulding a container

sudo docker build -t CONTAINER_NAME .

-t is the container "tag" name
. assumes the "Dockerfile" is in the same directory as the PWD

 

Running and opening a container

docker run -it --rm CONTAINER_NAME bash

-it interactive terminal like bash
--rm removes the container after exiting