Pinned Loading
-
-
Just a collection of stuff I use to ...
Just a collection of stuff I use to troubleshoot Docker and networking issues 1#Stop/Remove a specific Docker Container
2docker stop containername && docker rm containername
34#Stop all containers with "backend" in it:
5docker rm $(docker ps -a | grep backend | cut -f1 -d' ')
-
Remote Powershell stuff
Remote Powershell stuff 1Enable-PSRemoting
2Get-Item WSMan:\localhost\Client\TrustedHosts
3Set-Item WSMan:\localhost\Client\TrustedHosts -Value 'RemoteServerName'
45#This weird thing is only needed if you still can't run WSMan commands even after enabling all the trust settings (https://web.archive.org/web/20110615172805/http://www.shirmanov.com/2011/04/winrm-access-is-denied-on-local.html)
-
Tcpdump for a given Docker container
Tcpdump for a given Docker container 1#!/bin/bash
2IP=`docker inspect MyContainerName | grep 'IPAddress":' | cut -f4 -d'"' | head -1` && sudo tcpdump -i docker0 host $IP
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.