Tips and Trics
- Filter out just container name
Bashdocker ps | awk '{print $NF}' | grep -w somename
- How to run more complex commands | docker exec
Bashdocker exec -i container_name bash -c "cd /root/python && python myscript.py"
- List containers by name
Bashdocker ps --format '{{.Names}}'
Other Stuff
Bashdocker run -it --cap-add=NET_ADMIN --device /dev/net/tun --name vpn -v /home/$USER/temp/vpnclient-openvpn/profile-8.ovpn:/vpn/profile-8.ovpn -d dperson/openvpn-client