## Docker Version and Infodocker -v
docker info
## List Imagesdocker images
## List Containers (running, all)docker container ls
docker container ls --all
docker ps
docker ps -a
## Run a New Containerdocker run
<image-name>
docker run --name <name> <image-name>
docker run -p <outer-port>:<inner-port> <image-name>
docker run -d -p <outer-port>:<inner-port> <image-name>
## Start a Containerdocker start
<name>
## Stop a Containerdocker stop
<name>
## Remove a Containerdocker rm
<container-id>
docker rm -f <container-id>
## Remove an Imagedocker rmi
<image-name>
## Remove All Stopped Containersdocker container prune
## Remove All Unused Imagesdocker image prune -a
## Connect to Docker via Bashdocker exec -it
<name>
bash
Install Dockeryum install docker
Start Docker Deamonsystemctl start docker
Create a Postgres Containerdocker run -d --name my-postgres -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres
Create a Keycloak Serverdocker run -d --name my-keycloak -e KEYCLOAK_USER=keyadmin -e KEYCLOAK_PASSWORD=keypass -p 7000:8080 jboss/keycloak
Create a Konga Admin GUIdocker run -d --name my-konga -p 1337:1337 -e "TOKEN_SECRET=somerandomstring" -e "DB_ADAPTER=postgres" -e "DB_HOST=kong-database" -e "DB_PORT=5432" -e "DB_USER=kong" -e "DB_PASSWORD=kong" -e "DB_DATABASE=konga" -e "NODE_ENV=development" --net=kong-net pantsel/konga
Create a Docker Networkdocker network create --driver bridge kong-net
Connecting a Docker Container to a Networkdocker network connect kong-net kong-database
Docker Compose Pulldocker-compose pull && docker-compose down && docker-compose up -d