Adding check if docker is running before run socat.