Difference between revisions of "Docker"
From Wasya Wiki
Line 4: | Line 4: | ||
== Clear unused objects == | == Clear unused objects == | ||
docker system prune | docker system prune | ||
+ | |||
+ | == stop a docker container == | ||
+ | docker container ls | ||
+ | docker rm -f <container-name> | ||
== Host internal name == | == Host internal name == |
Latest revision as of 17:42, 21 March 2024
See the README's in docker repo's.
Contents
Clear unused objects
docker system prune
stop a docker container
docker container ls docker rm -f <container-name>
Host internal name
host.docker.internal
Login to a hosted mysql
mysql -h localhost -P 3306 --protocol=tcp -u root -p
Login to a running container
docker exec -it <container_id> /bin/bash
View logs
docker logs -f <container-id>