Get Started with the Intel® oneAPI IoT Toolkit for Linux*
                    
                        ID
                        766883
                    
                
                
                    Date
                    12/16/2022
                
                
                    Public
                
            A newer version of this document is available. Customers should click here to go to the newest version.
                        
                        
                            
                            
                                Configure Your System
                            
                        
                            
                                Run a Sample Project Using the Command Line
                            
                            
                        
                            
                                Run a Sample Project with Eclipse*
                            
                            
                        
                            
                                Build and Run a Sample Project Using Visual Studio Code
                            
                            
                        
                            
                            
                                Adding oneAPI Components to Yocto* Project Builds
                            
                        
                            
                                Using Containers
                            
                            
                        
                            
                            
                                Using Cloud CI Systems
                            
                        
                            
                            
                                Common Use Cases for the Intel® oneAPI IoT Toolkit
                            
                        
                            
                                Next Steps
                            
                            
                        
                            
                            
                                Troubleshooting
                            
                        
                            
                            
                                Notices and Disclaimers
                            
                        
                    
                Using Containers with the Command Line
Intel® oneAPI IoT Toolkit
Compile and run the containers directly.
The below enables the GPU, if available, using --device=/dev/dri (may not be available in Linux* VM or Windows*). The command will leave you at a command prompt, inside the container, in interactive mode.
image=intel/oneapi-iotkit
# --device=/dev/dri enables the gpu (if available). May not be available in Linux VM or Windows
docker run --device=/dev/dri -it "$image"
 
 
   
   
  
    Once in the container, you can interact with it using Run a Sample Project Using the Command Line. 
    
    
     
   
 
  
      NOTE: 
    
 You may need to include proxy settings before -it "$image"if you are behind a proxy: 
   docker run -e http_proxy="$http_proxy" -e https_proxy="$https_proxy" -it "$image" 
    
  Using Intel® Advisor, Intel® Inspector, or VTune™ Profiler with Containers
When using these tools, extra capabilities have to be provided to the container:
--cap-add=SYS_ADMIN --cap-add=SYS_PTRACE
docker run --cap-add=SYS_ADMIN --cap-add=SYS_PTRACE \
--device=/dev/dri -it "$image" 
    
   Parent topic: Using Containers