-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How to run command in docker container?? #232
Comments
Try:
Is
|
I ran the commands above and got this:
I then tried |
ouch! |
command that ended up working for me: Thanks! i got the application, gazebo, to launch now but something weird is going on. It crashes when i start another program on the same container that hosts a server on port 14560/tcp (make px4_sitl_default none_iris). I think it may have something to do with the docker network connection Is there a way to set which docker network to connect to? Default is the host bridge connection but I have a custom bridge connection for my other containers that the x11docker gazebo container needs to communicate with (all the other containers are hosting different instances of the same server on port 14560/tcp that gazebo needs to connect to. I think that may be why it is crashing. |
I am not experienced in network setups, but basically I see two ways. |
Thanks, I wasn't sure where the network command went. The network command works but i've noticed that the command after
I think two instances of the command
edit: turns out it was not executing twice. Error i was getting was this:
|
That's odd. Maybe your image has a custom entrypoint that could cause this behaviour? Try with Btw, it should work if you run |
I got it working. I had to use checkout v1.8.2 from PX4/Firmware,not the latest v1.9.0. The problem was not with x11docker but thanks for helping with this, i'm going to try to run my code on windows now... |
Great!
If you'll have issues on Windows, please open a new ticket. |
I know its probably super obvious but i've tried everything.... I created a docker image (i can provide the dockerfile if needed), and i want to start the container from that image and run a command that starts a server and opens a gui application (gazebo).
I want to run this command:
cd /home/user/Firmware;make px4_sitl_default gazebo
I've tried:
I've tried variations of the above settings. The closest ive gotten is this error (labuser is my host's username, the file path /home/user.... is on the container:
/usr/local/bin/entrypoint.sh: line 20: /fakehome/labuser/[bash;/home/user/Firmware;make px4_sitl_default gazebo]: No such file or directory
The text was updated successfully, but these errors were encountered: