adapt to docker