Connect to another container using terminal #2230
Unanswered
Alex-Ferreli
asked this question in
Q&A
Replies: 2 comments 5 replies
-
I run a single container which also runs the code server. An example
The
I put it behind a reverse proxy and a https setup so that it is easier for me to access it on an iPad as well as my primary work machine. You can modify it based on your preferences and environment. Note: The shared settings work on 3.6.0 (and not 3.6.1). |
Beta Was this translation helpful? Give feedback.
2 replies
-
One idea is to install the Docker CLI in the code-server container then
mount the Docker socket which would allow communication with the Docker
daemon.
Then you could use `docker exec` from the code-server terminal and get
into the create-react-app container.
If you do this you could also install the Docker plugin which would let
you manage and access all your Docker images from VS Code's UI.
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's possible to connect to another container using terminal?
This is my use case:
2 containers, 1 for a create-react-app, 1 for code-server.
If i call "npm run test" from code-server instance the command is executed inside the "wrong" container, because i do "npm i" only on create-react-app container, so i didn't have these dependencies installed in code-server.
I ended up installing these dependencies too inside code-server container, so i do "npm i" twice.
If it's possible to access create-react-app container from code-server terminal all this issue are covered.
It's possible? Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions