Skip to content

Commit

Permalink
minor fix in docker readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Oct 25, 2024
1 parent cd82651 commit d9d5a51
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,33 @@ $ colcon build

## Docker

If your operating system doesn't support ROS 2 humble, docker is a great alternative.

First of all, you have to build the project and create an image like so:
If your operating system doesn't support ROS 2 humble, docker is a great alternative. First of all, you have to build the project and create an image like so:

```shell
## Assuming you are in the correct project directory
$ docker build . -t yasmin
$ docker build -t yasmin .
```

To use a shortcut, you may use the following command:

```shell
## Assuming you are in the correct project directory
$ make docker_build
```

After the image is created, copy and paste the following command to the terminal to run the image:
After the image is created, run a docker container with the following command:

```shell
## Assuming you are in the correct project directory
$ docker run -it --net=host --ipc=host --privileged --env="DISPLAY" --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --volume="${XAUTHORITY}:/root/.Xauthority" --entrypoint /bin/bash yasmin
```

To use a shortcut, you may use following command:

```shell
$ make docker_run
```

### Running the package at docker image

If you are in the docker image , this project is already sourced and the demo script can be run as the following command;
Expand Down

0 comments on commit d9d5a51

Please sign in to comment.