Linux: Docker: Useful Commands - eliminmax/cncs-journal GitHub Wiki

Useful Docker commands

Official Docker installation instructions for Ubuntu 20.04 LTS

Official Docker Compose installation instructions for Ubuntu 20.04 LTS

Run Docker image

$ docker run <IMAGENAME>

View Running Docker processes

$ docker ps

View Locally Available Docker images

$ docker images

Run In Background

$ docker run -d <IMAGENAME> or $ docker run --detatched=true <IMAGENAME>

Map open ports to host

if you want to, for example, be able to access a web server running within the Docker container from an outside browser, you can do this to make it available

$ docker run -P <IMAGENAME>

⚠️ **GitHub.com Fallback** ⚠️