Attach to a running container
docker exec -i -t <container> /bin/bash
Run networking tools
docker run -d praqma/network-multitool --name netshoot docker exec -it netshoot /bin/bash
Test network connectivity
apt update apt install net-tools apt install curl curl -kv
To stop all docker containers in PowerShell
docker ps -a -q | ForEach { docker stop $_ }
Show the logs for a container
docker logs <container>
Show networks
docker inspect <container>
No comments:
Post a Comment