Run a simple container
docker run --name example-website -v ~/path/to/html:/usr/share/nginx/html -p 8080:80 -d nginx
Stopping a container
docker stop example-website
Deleting a container
docker rm example-website
Start a docker-compose file
docker compose -p appv1 up -d
List docker compose applications
docker compose ls
Bring down specific application
docker compose -p appv1 down
Check how much memory and cpu usage a docker container is using.
docker stats
Connect to host machine ports from inside container:
#Add to docker compose
extra_hosts:
- "host.docker.internal:host-gateway"
#from inside machine connect like this
http://host.docker.internal:PORT