make sure we get the existing container properly
make sure we do the curl check properly, thanks bash and "local" being a command
open for read and write so the open doesn't block the read
establish where the daemon is running properly
use -s instead of just -