The Docker Tooling plugin provides the ability to manage Docker images and containers from within the Eclipse IDE. Doclipser is not the only Docker eclipse plugin. There is the great Eclipse Docker Tooling (EDT) too. It’s packaged with the Eclipse Linux Tools and maintained by JBoss. Even if they both make it possible to work with Docker from within the IDE, doclipser and EDT have two different approaches.
- Prerequisite: ensure Java* JRE 8 or 11 is installed.
- Download and install the latest Eclipse IDE for C/C++ Developers.
- Download and install the Intel® oneAPI Base Toolkit in order to easily browse samples.
Use the Samples Browser to Create an Eclipse Project
Eclipse Docker Container
- Make sure you've followed the steps described on the Using Containers page to download the Docker image.
- Open the Project Properties by right clicking .
- In select, and open the tab to set the following:Settings
- Select the docker image to use. If there are no images listed, verify that Docker is enabled for non-root users. Alternatively, you can run Eclipse with sudo.
- Confirm that the console prints 'Running in image...'
- Create a Run Configuration with .
- Create a new C/C++ Container Launcher.
- Select the Container tab and make sure the is set to the correct Docker image. To enable GPU in the container, add/dev/driin the and checkRun in Privileged Mode.
- To enable GPU in the container, select the tab and add/dev/drias Required Host Directories, and check .
- Click the icon.
- Confirm that the console prints