Created
November 16, 2015 23:06
-
-
Save ruffsl/b5ce749e6352ba93dacd to your computer and use it in GitHub Desktop.
docker-compose ros issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
master: | |
build: . | |
container_name: master | |
command: | |
- roscore | |
talker: | |
build: . | |
container_name: talker | |
environment: | |
- "ROS_HOSTNAME=talker" | |
- "ROS_MASTER_URI=http://master:11311" | |
command: | |
- rosrun roscpp_tutorials talker | |
listener: | |
build: . | |
container_name: listener | |
environment: | |
- "ROS_HOSTNAME=listener" | |
- "ROS_MASTER_URI=http://master:11311" | |
command: | |
- rosrun roscpp_tutorials listener |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a Dockerfile for ros:ros-tutorials | |
FROM ros:indigo-ros-base | |
# install ros tutorials packages | |
RUN apt-get update && apt-get install -y \ | |
ros-indigo-ros-tutorials \ | |
ros-indigo-common-tutorials \ | |
&& rm -rf /var/lib/apt/lists/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker-compose --x-networking up | |
Starting listener | |
Starting master | |
Starting talker | |
Attaching to listener, master, talker | |
listener | /ros_entrypoint.sh: line 6: exec: rosrun roscpp_tutorials listener: not found | |
talker | /ros_entrypoint.sh: line 6: exec: rosrun roscpp_tutorials talker: not found | |
listener exited with code 127 | |
talker exited with code 127 | |
^CGracefully stopping... (press Ctrl+C again to force) | |
Stopping master ... done | |
ERROR: | |
Aborting. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment