1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 01:36:23 +00:00

Add troubleshooting

This commit is contained in:
David Young
2017-12-28 23:02:33 +13:00
parent ddffdb9b2f
commit 4fe7aa724d
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# Troubleshooting
Having difficulty with a recipe? Here are some tips..
## Why is my stack not launching?
Run ```docker stack ps <stack name> --no-trunc``` for more details on why individual containers failed to launching
## Attaching to running container
Need to debug **why** your oauth2_proxy container can't talk to its upstream app? Start by identifying which node the proxy container is running on, using ```docker ps <stack name>```.
SSH to the host node, and attach to the container using ```docker exec -it <continer id> /bin/bash``` (_substitute ```/bin/ash``` for ```/bin/bash```, in the case of an Alpine container_), and then try to telnet to your upstream host.
## Watching logs of container
Need to see what a particular container is doing? Run ```docker service logs -f <stack name>_<container name>``` to watch a particular service. As the service dies and is recreated, the logs will continue to be displayed.

View File

@@ -59,6 +59,7 @@ pages:
- Networks: reference/networks.md - Networks: reference/networks.md
- git-docker : reference/git-docker.md - git-docker : reference/git-docker.md
- OpenVPN : reference/openvpn.md - OpenVPN : reference/openvpn.md
- Troubleshooting: reference/troubleshooting.md
- Support: support.md - Support: support.md
theme: theme: