Docker Community Forums

Share and learn in the Docker community.

Neuro-docker image and container

Hello,
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

EXPOSE 5000

Keeps Python from generating .pyc files in the container

ENV PYTHONDONTWRITEBYTECODE=1

Turns off buffering for easier container logging

ENV PYTHONUNBUFFERED=1

Install pip requirements

COPY requirements.txt .

RUN python -m pip install -r requirements.txt

WORKDIR /app

COPY . /app

RUN useradd appuser && chown -R appuser /app

USER appuser

CMD [“gunicorn”, “–bind”, “0.0.0.0:5000”, “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.