How can I visualize a simulation running inside a docker container #2027
Replies: 4 comments
-
Hi, having a similar issue here. Have you found the solution? |
Beta Was this translation helpful? Give feedback.
-
Unfortunately I still have no idea how to get it to work on MacOS. |
Beta Was this translation helpful? Give feedback.
-
@Xi-HHHM For these two lines libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast the problem can be solved by running export LIBGL_ALWAYS_INDIRECT=1
sudo apt-get install -y mesa-utils libgl1-mesa-glx as shown in this post. However, I still do not know how to solve the problem of /usr/local/lib/python3.10/dist-packages/glfw/__init__.py:914: GLFWError: (65543) b'GLX: Failed to create context: BadValue (integer parameter out of range for operation)'
warnings.warn(message, GLFWError)
ERROR: could not create window
Press Enter to exit ... This somehow feels like is due to the lack of an NVIDIA GPU, which if it is the case is not something we can deal with on MacOS. |
Beta Was this translation helpful? Give feedback.
-
have you solved this problem?
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm to use MuJoCo for running robotic simulations from a docker container on an M1 Macbook Pro. I'm looking for some help with visualizing the simulation on my host OS.
To reproduce the steps I took first, I opened
XQuartz
inside my MacOS, and opened a terminal and typedwhich gave me the output
Then, I created the following
Dockerfile
Then, I used the following command to build the docker image
docker build -t gui .
and I started a docker container using the command
I first tested if I could connect to the host X11 server by running
which gave me the following output
Then, I tried to run a simple MuJoCo simulation, which gives me the following error
running the same command inside MacOS gives me the following simulation
Any help with resolving the OpenGL issue in docker would be greatly appreciated!
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions