client: fix code that depend on docker