Remove dangling
images:
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
Remove all stopped docker containers:
docker rm $(docker ps -a -q)
iptables -t nat -A DOCKER -p tcp --dport <port_out> -j DNAT --to-destination <container_ip>:<port_in>
iptables -t nat -A POSTROUTING -j MASQUERADE -p tcp --source <container_ip> --destination <container_ip> --dport <port_out>
iptables -A DOCKER -j ACCEPT -p tcp --destination <container_ip> --dport <port_out>