Difference between revisions of "Docker"
From Wasya Wiki
| Line 2: | Line 2: | ||
== host internal name == | == host internal name == | ||
* host.docker.internal | * host.docker.internal | ||
| + | |||
| + | == docker build and push == | ||
| + | |||
| + | docker tag 7727bbb2c924 piousbox/wordpress_6:0.0.0 | ||
| + | docker push piousbox/php73:0.0.0 | ||
= Troubleshoot = | = Troubleshoot = | ||
Revision as of 11:51, 5 May 2023
Contents
host internal name
- host.docker.internal
docker build and push
docker tag 7727bbb2c924 piousbox/wordpress_6:0.0.0 docker push piousbox/php73:0.0.0
Troubleshoot
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
./scripts/login
View logs
docker logs -f <container-id>