Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to fix The terminal process "/usr/sbin/nologin" failed to launch (exit code: 1) error

I am running my VSCode on Windows but I have connected it to a remote container. I am trying to start an integrated terminal on VSCode in that container and I get this error:

The terminal process "/usr/sbin/nologin" failed to launch (exit code: 1).

I can enter the container and start a bash terminal with docker exec but the integrated VSCode terminal gives me that error.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Any ideas how I can successfully open the terminal in VSCode?

>Solution :

See here
nologin – Man Page

nologin will always exit non-zero

I expect the user associated with the container has nologin set as their default Shell. Change this to bash or similar and you should be good to go. You could try adding the following to your Dockerfile

ENV SHELL /bin/bash

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading