Closed adelholtz closed 2 years ago
Hello adelholtz!
this sounds like a similar problem I had last week. And maybe you already answered your question yourself:
But that should only be possible unless something shows up with "docker ps" no?
There should be a local container after the gefyra run ...
command. This container is then bridged into the cluster using gefyra bridge ...
. In my case I was missing a CMD command in my Dockerfile and the container was exiting all the time.
Maybe your container does not keep running, too? You could check this directly using docker. Sometimes you might need to add something like "tail -f /dev/null" to keep the container running.
Alternatively you can follow the "Try it yourself" guide with the example project to confirm that everything works fine.
I hope this helps. Feel free to reach out again if this does not help!
HI
ok thank you for the answer. I figured the out what the problem was. The container did indeed not start so it is no wonder it didn't show up after "gefyra run..." It would help though to get a feedback at that point, that something may be wrong with the container we try to start at this point.
My problem in this case was, that I took one of my already existing containers, in this case an nginx container. What I forgot however was, that I had a reverse and web socket connection defined in the nginx config, and the container didn't start because the connections/servers he was trying to use did not exist.
Will have to look into that specific setup further to figure out how to deal with such scenarios.
Your answer helped me get on the right track shower, so thank you.
HI there
i have been playing around with gefyra for a while now but i can't get containers to run with "gefyra run ..."
I followed the steps mentioned in "Try it yourself" and everything goes smootly until i reach the point with "gefyra run..."
After that nothing.
gefyra list --containers
is empty.
docker ps
is not showing the container i should have just created/run.
The "try it yourself" guide says:
"Exec into the running container and look around. You will find the container to run within your Kubernetes cluster. docker exec -it mypyserver bash"
But that should only be possible unless something shows up with "docker ps" no?
Am i missing something? Did i do something wrong? Or am i just to stupid to use this tool? 😅