4 ms·
> root@id:/app# nodemon src/server.js Why is this needed when "CMD [ "nodemon", "server.js" ]" already exists?
by Kiro 9y ago
> root@id:/app# nodemon src/server.js
Why is this needed when "CMD [ "nodemon", "server.js" ]" already exists?
- praveenweb 9y agoCMD will work in detached mode. i.e - "docker run -d". In an interactive mode i.e - "docker run -ti", you can land up with shell access of the container, where you can run commands / perform other tasks as required. In this case, we are running nodemon.