Difference between revisions of "Docker"

From Wasya Wiki
Jump to: navigation, search
(View logs)
Line 1: Line 1:
  
 
= Troubleshoot =
 
= Troubleshoot =
 +
 +
== Login to a hosted mysql ==
 +
 +
  mysql -h localhost -P 3306 --protocol=tcp -u root -p
 +
 
== Login to a running container ==
 
== Login to a running container ==
  

Revision as of 19:18, 7 September 2022

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>