Docker Community Forums

Share and learn in the Docker community.

Neuro-docker image and container

I am trying to run nipype on windows with vscode through docker container.
I created an image from kaczmarji/neurodocker, and created a docker file with the code I would like to run:

FROM python:3.8-slim-buster


Keeps Python from generating .pyc files in the container


Turns off buffering for easier container logging


Install pip requirements

COPY requirements.txt .

RUN python -m pip install -r requirements.txt


COPY . /app

RUN useradd appuser && chown -R appuser /app

USER appuser

CMD [“gunicorn”, “–bind”, “”, “BIDS_FOR_DTI\preprocessing\preprocess:app”]

Now I have two images- master, that was created through the build, and neurodocker.
when I run the two images I got the same print:

Terminal will be reused by tasks, press any key to close it.

  1. How I run the neurodocker image on the wanted code?
  2. Why the new master image won’t run?

Thank you so much

A Docker container is a runtime instance of an image. From one image you can create multiple containers (all running the sample application) on multiple Docker platform. A container runs as a discrete process on the host machine.