vitor-alves / webots_dev

2 stars 0 forks source link

Problem when using docker #1

Open hejujie opened 5 years ago

hejujie commented 5 years ago

Thank you for your Docker.

As the development environment in our lab is based on docker. So I need to find some way to use webots in docker.

When I am using this image, I get the same error about X display as I download webots in my docker.

The problem is how to start webots and open a wbt file without GUI command in the container?

And is EXPOSE 1234 mean the port in the docker, but I can't visit localhost:1234 even I run the image in my mac.

Btw, I have also tried to connect docker with vnc before I found this repository, open webots in GUI with vnc and start the simulator, but the GPU can't be used in webots. (I can run tensorflow-gpu in the docker). is there any limit in webots?

vitor-alves commented 5 years ago

Hi

Take a look at my code. It deploys .wbt and controllers to webots and opens a GUI in the host outside the container.

webots-deploy-docker.zip

You can run it using python deploy_to_docker.py -c khepera3_gripper -w khepera3_gripper