Using PyMC3 Docker Container in CI Pipeline?

I can’t call these commands from the docker container.
The problem is that the docker run command starts the notebook itself and it doesn’t seem to take arguments, or I don’t know how to provide them. I tried starting the docker container with the --it argument, but the notebook still starts and doesn’t give me an option to start it by myself as you suggest (commandline is blocked when the notebook runs). When pressing ctrl+c the notebook is stopped, but the container still runs in the background.

I managed to attach VSCode to the remote docker container running in WSL2, but when opening the getting started notebook, for example, I get ModuleNotFound errors for arviz and theano. They don’t seem to be part of the container, hence the container is pretty useless to me in its current state.

I now will try to setup an CI/CD environment with micromamba and install dependencies from my environment.yml.
I don’t know enough about docker yet to create my own image as @RavinKumar suggested, but I’d prefer if there was one suitable for CI pipelines.