Python
You're viewing a free preview. Sign in free to read every tool guide.
Shelling out, the safe way Security critical: pass the command as a list (["docker", "ps", " a"]), not a shell string. A list bypasses the shell entirely, so nothing in a variable you interpolate can be interpreted as a…
Automating with subprocess & os
Sign in free to read this guide, along with the rest of the DevOps Tools library.
Sign in free