Installing / Uninstalling Docker If docker engine (daemon) does not start up — Install-Package -Name docker -ProviderName DockerMsftProvider -verbose (from an admin PS prompt) To completely remove docker desktop…
Read more →
These are some of the shortcuts for inspecting running containers. First, of course, get the ID of the running container docker container ls -a (show me all the…
Read more →
To connect to docker and launch a PS prompt inside the container docker exec CONTAINERID To fetch the newest 1000 events in the Application Event log (the…
Read more →
Docker logs by themselves reveal little about your containerized application. To get a true monitoring strategy in place, that includes your application metrics, you need a tool like…
Read more →
Amazon Linux EC2 only wget --no-check-certificate https://dl.eff.org/certbot-auto chmod a+x ./certbot-auto sudo yum -y install python-pip sudo pip install cryptography sudo pip install certbot Installing on any other…
Read more →
I ran into a few issues when modifying my PowerShell modules and not being able to step through the modified code. Here are some simple tips to ensure…
Read more →
Launch Powershell cmd prompt from the programs menu. Inside the cmd prompt , type Get-ADTrust if it fails – do this first : import-module activedirectory Once you have…
Read more →
ARGs in dockerfile are great for passing in build time paramaters (before a container is built) ENVs in dockefile are for passing in run time parameters (once a…
Read more →
a) From Powershell – Test-NetConnection MySMTPServer.com -port 25 b) telnet (install telnetclient from windows features) and, in a cmd prompt (or PS prompt), telnet MySMTPServer.com 25
Read more →
More samples at www.oreil.ly/poweshell-cookbook Call a local exe — use the call operator & Set-Location $composefolder & ‘C:\Program Files\docker\docker-compose.exe’ “up” Call another PS script Invoke-Expression “.\configure-system.ps1” Show all…
Read more →