Docker

From Wasya Wiki
Revision as of 11:52, 5 May 2023 by Piousbox (Talk | contribs) (docker build and push)

Jump to: navigation, search

host internal name

  • host.docker.internal

docker build and push

Login, build, then:

 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>