docker-ros-vnc is a Docker image based on fcwu/docker-ubuntu-vnc-desktop which adds a ROS2 environment on top of the existing VNC development. The docker-ubuntu-vnc image is running Ubuntu 20.04 focal.
If you don't have Docker installed, please follow one of the setup links below.
Please follow this link for Docker Desktop windows setup.
Please follow this link for Docker Desktop Mac setup.
Please follow this link for Docker Linux setup. Note that there are different installation requirements depending on the distro you are installing on.
Setting up the actual docker-ros-vnc container. There are two ways to setup the docker container:
- Installing from Docker Image (quick option)
- Installing from dockerfile
- Pull the image from dockerhub.
docker pull stepheny755/docker-ros-vns:latest
- Run the command below to start the docker container. Note that VNC viewer access is provided over port
6080
docker run --mount source=ros_files,target=/root -it -p 6080:80 stepheny755/docker-ros-vnc
- The VNC instance can be accessed at http://127.0.0.1:6080/ in any web browser
- Download the dockerfile from this repository
git clone https://github.com/Stepheny755/docker-ros-vnc
cd docker-ros-vnc
- Run the command below to download and build the docker container.
docker build -t docker-ros-vnc .
- Run the command below to start the docker container. Note that VNC viewer access is provided over port
6080
docker run --mount source=ros_files,target=/root -it -p 6080:80 docker-ros-vnc
- The VNC instance can be accessed at http://127.0.0.1:6080/ in any web browser
Docker Volumes are created for the /root folder (~/) folder by default. Files stored in the ~/ directory will be saved accross each launch of the container. You can change the directory to bind to the volume by editing the path in the target
parameter of the --mount
flag in the docker run
command.