-tName and optionally a tag in the ‘name:tag’ format
docker build -t <IMAGE> .
The
-itinstructs Docker to allocate a pseudo-TTY connected to the container’s stdin; creating an interactive bash shell in the container.
--rmAutomatically remove the container when it exits
--nameAssign name
-pPublish a container’s port(s) to the host EXPOSED_PORT:INTERNAL_PORT
docker run -it --rm --name=<NAME> -p 8082:9000 <IMAGE>
-fForce the removal of a running container (uses SIGKILL)
-aShow all containers (default shows just running)
-qOnly display numeric IDs
docker rm -f $(docker ps -a -q)
docker rmi -f $(docker images -a -q)
docker volume rm $(docker volume ls -q
docker network rm $(docker network ls | tail -n+2 | awk '{if($2 !~ /bridge|none|host/){ print $1 }}')
docker restart <CONTAINER>