How do I configure terminal to run inside of a docker container?
I'm using Docker for Windows and I'd like it so that whenever I open a terminal, instead of running cmd.exe, it runs something along the linesof:
"C:\Program Files\Docker\Docker\resources\bin\docker-compose.exe run" --rm --entrypoint=bash web
请先登录再写评论。
Hello,
You can put that desired path into Shell path field in Settings/Preferences | Tools | Terminal instead of cmd.exe.
Hey Vladimir,
So I have already tried this, and I end up getting this error:
"java.io.IOException: Couldn't create PTY"
Is there something special I have to do to make this work?
Ah, looks like I got it by doing this:
"cmd.exe" /k ""C:\Program Files\Docker\Docker\resources\bin\docker-compose.exe" exec web bash"
Worth pointing out that the quoting matters!