Answer the question
In order to leave comments, you need to log in
Why does an error occur when starting a Docker container?
Hello. I have a simple Dockerfile:
FROM node:latest
RUN useradd --create-home --shell /bin/bash testuser
USER testuser
WORKDIR /home/testuser
CMD ['/bin/bash']
testhub/node-base:latest
. docker run -it testhub/node-base:latest
I get the error /bin/sh: 1: [/bin/bash]: not found
. /bin/bash
, then everything is OK - docker run -it testhub/node-base:latest /bin/bash
. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question