You have to check "Docker-outside-of-docker" (DooD) to allow the manager container to control the docker environment.
Try following thing.
1- Mount the docker socket(/var/run/docker.sock) from the host when you run the manager container and the Command is
docker run -v /var/run/docker.sock:/var/run/docker.sock --name manager-container your-manager-image
*Just make sure Docker CLI is installed in your manager container.
You can also check Docker-in-Docker (DinD)