Difference between revisions of "Docker"
From Wasya Wiki
Line 1: | Line 1: | ||
− | == | + | See the README's in docker repo's. |
+ | |||
+ | == Clear unused objects == | ||
docker system prune | docker system prune | ||
− | == | + | == Host internal name == |
* host.docker.internal | * host.docker.internal | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Login to a hosted mysql == | == Login to a hosted mysql == | ||
Line 23: | Line 15: | ||
docker exec -it <container_id> /bin/bash | docker exec -it <container_id> /bin/bash | ||
− | |||
− | |||
== View logs == | == View logs == | ||
docker logs -f <container-id> | docker logs -f <container-id> |
Revision as of 18:06, 23 August 2023
See the README's in docker repo's.
Contents
Clear unused objects
docker system prune
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>