<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Get the root access in the container of the session in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Get-the-root-access-in-the-container-of-the-session/m-p/410114#M252857</link>
    <description>&lt;P&gt;Dear Mike,&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;I would like to highlight that I do not have internet access within CDSW, as our Cloudera environment is fully air-gapped.&lt;/P&gt;&lt;P&gt;From your previous message, I understand that you are suggesting I create a custom Docker image and run it accordingly. I have already created a custom Docker image — however, I would appreciate it if you could review it and provide your feedback.&lt;/P&gt;&lt;P&gt;Additionally, could you clarify your expectations regarding the base operating system for the container image? and the Base image?&lt;/P&gt;&lt;P&gt;For your reference, we are using CDSW version 1.10.5.&lt;/P&gt;&lt;P&gt;Best wishes,&lt;BR /&gt;&lt;STRONG&gt;Salim&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;### **Description of the Docker Image**&lt;BR /&gt;This Docker image is a **customized environment** tailored for Cloudera Data Science Workbench (CDSW) in an **air-gapped (offline)** setting. It includes the following components:&lt;/P&gt;&lt;P&gt;1. **Base Image**:&lt;BR /&gt;- Starts with `docker.repository.cloudera.com/cdsw/engine:8` , ensuring compatibility with CDSW.&lt;/P&gt;&lt;P&gt;2. **Operating System**:&lt;BR /&gt;- **Ubuntu 20.04 LTS**, a lightweight and stable Linux distribution.&lt;/P&gt;&lt;P&gt;3. **MySQL 8.0.4**:&lt;BR /&gt;- A milestone release of MySQL, installed from pre-downloaded `.deb` packages (no internet required).&lt;/P&gt;&lt;P&gt;4. **Python 3.8.18**:&lt;BR /&gt;- Compiled from source to ensure version compatibility.&lt;/P&gt;&lt;P&gt;5. **Node.js 22.16.0**:&lt;BR /&gt;- Installed via a pre-extracted binary archive.&lt;/P&gt;&lt;P&gt;6. **Grafana Enterprise 11.6.0**:&lt;BR /&gt;- Installed using a `.deb` package for enterprise-grade monitoring.&lt;/P&gt;&lt;P&gt;7. **Ollama**:&lt;BR /&gt;- A pre-downloaded binary for running large language models locally.&lt;/P&gt;&lt;P&gt;8. **Python Packages**:&lt;BR /&gt;- Installed **offline** from a pre-downloaded `requirements.txt` file and local wheels (`.whl` or `.tar.gz`) .&lt;/P&gt;&lt;P&gt;9. **Exposed Ports**:&lt;BR /&gt;- MySQL (3306), Python apps (8000), Grafana (3000), and Ollama (11434).&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;### **Requirements to Build the Image**&lt;BR /&gt;To build this image in an **air-gapped environment**, you must pre-download and include the following:&lt;/P&gt;&lt;P&gt;1. **Pre-downloaded Dependencies**:&lt;BR /&gt;- **MySQL 8.0.4 `.deb` packages** (from Cloudera or MySQL archives).&lt;BR /&gt;- **Python 3.8.18 source tarball** (from [python.org](&lt;A href="https://www.python.org/ftp/python/3.8.18/" target="_blank" rel="noopener"&gt;https://www.python.org/ftp/python/3.8.18/&lt;/A&gt;)).&lt;BR /&gt;- **Node.js 22.16.0 Linux x64 binary** (from [nodejs.org](&lt;A href="https://nodejs.org/dist/v22.16.0/" target="_blank" rel="noopener"&gt;https://nodejs.org/dist/v22.16.0/&lt;/A&gt;)).&lt;BR /&gt;- **Grafana Enterprise 11.6.0 `.deb` package** (from Grafana’s enterprise download page).&lt;BR /&gt;- **Ollama binary** (from [ollama.ai/download](&lt;A href="https://ollama.ai/download" target="_blank" rel="noopener"&gt;https://ollama.ai/download&lt;/A&gt;)).&lt;/P&gt;&lt;P&gt;2. **Offline Python Packages**:&lt;BR /&gt;- Use `pip download -r requirements.txt -d python_packages/` in an online environment to fetch all dependencies locally .&lt;/P&gt;&lt;P&gt;3. **Directory Structure**:&lt;BR /&gt;Ensure the following files/directories exist in the build context:&lt;BR /&gt;```bash&lt;BR /&gt;.&lt;BR /&gt;├── Dockerfile&lt;BR /&gt;├── requirements.txt&lt;BR /&gt;├── ollama # Pre-downloaded Ollama binary&lt;BR /&gt;└── dependencies/&lt;BR /&gt;├── mysql-8.0.4/ # MySQL .deb packages&lt;BR /&gt;├── python/ # Python 3.8.18 source&lt;BR /&gt;├── node-v22.16.0-linux-x64.tar.xz&lt;BR /&gt;├── grafana-enterprise-11.6.0.deb&lt;BR /&gt;└── python_packages/ # Pre-downloaded Python wheels&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;4. **Build Command**:&lt;BR /&gt;Run:&lt;BR /&gt;```bash&lt;BR /&gt;docker build -t custom-cdsw:latest .&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;5. **Push to Private Registry (Optional)**:&lt;BR /&gt;For CDSW integration, push the image to a registry accessible by CDSW:&lt;BR /&gt;```bash&lt;BR /&gt;docker tag custom-cdsw:latest &amp;lt;your-registry&amp;gt;/custom-cdsw:latest&lt;BR /&gt;docker push &amp;lt;your-registry&amp;gt;/custom-cdsw:latest&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;### **Key References**&lt;BR /&gt;- Docker images contain application code, libraries, tools, and dependencies .&lt;BR /&gt;- Use `docker inspect` to view details about the image .&lt;BR /&gt;- Dockerfiles are often shared in repositories for transparency .&lt;/P&gt;&lt;P&gt;Let me know if you need further clarification!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jun 2025 05:52:03 GMT</pubDate>
    <dc:creator>SalimAlhajri</dc:creator>
    <dc:date>2025-06-11T05:52:03Z</dc:date>
    <item>
      <title>Get the root access in the container of the session</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-the-root-access-in-the-container-of-the-session/m-p/409900#M252847</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;i hope you are doing well.&lt;/P&gt;&lt;P&gt;can you please help me to get the root access in the container of the session in CDWS?&lt;/P&gt;&lt;P&gt;best wishes,&lt;/P&gt;&lt;P&gt;salim&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:19:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-the-root-access-in-the-container-of-the-session/m-p/409900#M252847</guid>
      <dc:creator>SalimAlhajri</dc:creator>
      <dc:date>2026-04-21T06:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get the root access in the container of the session</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-the-root-access-in-the-container-of-the-session/m-p/410022#M252850</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/127301"&gt;@SalimAlhajri&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our CDSW experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/25179"&gt;@Mike&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28743"&gt;@Gopinath&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 18:53:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-the-root-access-in-the-container-of-the-session/m-p/410022#M252850</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2025-06-09T18:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get the root access in the container of the session</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-the-root-access-in-the-container-of-the-session/m-p/410029#M252853</link>
      <description>&lt;P&gt;Dear Diana,&lt;/P&gt;&lt;P&gt;Many thanks for your support.&lt;/P&gt;&lt;P&gt;best wishes,&lt;/P&gt;&lt;P&gt;Salim&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 04:50:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-the-root-access-in-the-container-of-the-session/m-p/410029#M252853</guid>
      <dc:creator>SalimAlhajri</dc:creator>
      <dc:date>2025-06-10T04:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get the root access in the container of the session</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-the-root-access-in-the-container-of-the-session/m-p/410088#M252856</link>
      <description>&lt;P&gt;Hi Salim, you cannot access root in the containers - this is due to security concerns.&amp;nbsp; Sometimes customers need root to install something from pip (some pip libraries need make, for instance.) If that's the case, you'll need to create a custom Runtime (or Legacy Engine if you are still on CDSW) and install those libraries when you create the image - at creation time, you will have root.&lt;BR /&gt;&lt;BR /&gt;SEe here:&amp;nbsp;&lt;A href="https://docs.cloudera.com/machine-learning/cloud/runtimes/topics/ml-customized-runtimes.html" target="_blank"&gt;https://docs.cloudera.com/machine-learning/cloud/runtimes/topics/ml-customized-runtimes.html&lt;/A&gt;&lt;BR /&gt;Here is another example of a "dockerfile" and you can see that basically you can install anything in the Runtime(engine) container:&lt;BR /&gt;&lt;A href="https://github.com/cloudera/community-ml-runtimes/blob/main/ollama/Dockerfile" target="_blank"&gt;https://github.com/cloudera/community-ml-runtimes/blob/main/ollama/Dockerfile&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 23:35:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-the-root-access-in-the-container-of-the-session/m-p/410088#M252856</guid>
      <dc:creator>Mike</dc:creator>
      <dc:date>2025-06-10T23:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get the root access in the container of the session</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-the-root-access-in-the-container-of-the-session/m-p/410114#M252857</link>
      <description>&lt;P&gt;Dear Mike,&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;I would like to highlight that I do not have internet access within CDSW, as our Cloudera environment is fully air-gapped.&lt;/P&gt;&lt;P&gt;From your previous message, I understand that you are suggesting I create a custom Docker image and run it accordingly. I have already created a custom Docker image — however, I would appreciate it if you could review it and provide your feedback.&lt;/P&gt;&lt;P&gt;Additionally, could you clarify your expectations regarding the base operating system for the container image? and the Base image?&lt;/P&gt;&lt;P&gt;For your reference, we are using CDSW version 1.10.5.&lt;/P&gt;&lt;P&gt;Best wishes,&lt;BR /&gt;&lt;STRONG&gt;Salim&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;### **Description of the Docker Image**&lt;BR /&gt;This Docker image is a **customized environment** tailored for Cloudera Data Science Workbench (CDSW) in an **air-gapped (offline)** setting. It includes the following components:&lt;/P&gt;&lt;P&gt;1. **Base Image**:&lt;BR /&gt;- Starts with `docker.repository.cloudera.com/cdsw/engine:8` , ensuring compatibility with CDSW.&lt;/P&gt;&lt;P&gt;2. **Operating System**:&lt;BR /&gt;- **Ubuntu 20.04 LTS**, a lightweight and stable Linux distribution.&lt;/P&gt;&lt;P&gt;3. **MySQL 8.0.4**:&lt;BR /&gt;- A milestone release of MySQL, installed from pre-downloaded `.deb` packages (no internet required).&lt;/P&gt;&lt;P&gt;4. **Python 3.8.18**:&lt;BR /&gt;- Compiled from source to ensure version compatibility.&lt;/P&gt;&lt;P&gt;5. **Node.js 22.16.0**:&lt;BR /&gt;- Installed via a pre-extracted binary archive.&lt;/P&gt;&lt;P&gt;6. **Grafana Enterprise 11.6.0**:&lt;BR /&gt;- Installed using a `.deb` package for enterprise-grade monitoring.&lt;/P&gt;&lt;P&gt;7. **Ollama**:&lt;BR /&gt;- A pre-downloaded binary for running large language models locally.&lt;/P&gt;&lt;P&gt;8. **Python Packages**:&lt;BR /&gt;- Installed **offline** from a pre-downloaded `requirements.txt` file and local wheels (`.whl` or `.tar.gz`) .&lt;/P&gt;&lt;P&gt;9. **Exposed Ports**:&lt;BR /&gt;- MySQL (3306), Python apps (8000), Grafana (3000), and Ollama (11434).&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;### **Requirements to Build the Image**&lt;BR /&gt;To build this image in an **air-gapped environment**, you must pre-download and include the following:&lt;/P&gt;&lt;P&gt;1. **Pre-downloaded Dependencies**:&lt;BR /&gt;- **MySQL 8.0.4 `.deb` packages** (from Cloudera or MySQL archives).&lt;BR /&gt;- **Python 3.8.18 source tarball** (from [python.org](&lt;A href="https://www.python.org/ftp/python/3.8.18/" target="_blank" rel="noopener"&gt;https://www.python.org/ftp/python/3.8.18/&lt;/A&gt;)).&lt;BR /&gt;- **Node.js 22.16.0 Linux x64 binary** (from [nodejs.org](&lt;A href="https://nodejs.org/dist/v22.16.0/" target="_blank" rel="noopener"&gt;https://nodejs.org/dist/v22.16.0/&lt;/A&gt;)).&lt;BR /&gt;- **Grafana Enterprise 11.6.0 `.deb` package** (from Grafana’s enterprise download page).&lt;BR /&gt;- **Ollama binary** (from [ollama.ai/download](&lt;A href="https://ollama.ai/download" target="_blank" rel="noopener"&gt;https://ollama.ai/download&lt;/A&gt;)).&lt;/P&gt;&lt;P&gt;2. **Offline Python Packages**:&lt;BR /&gt;- Use `pip download -r requirements.txt -d python_packages/` in an online environment to fetch all dependencies locally .&lt;/P&gt;&lt;P&gt;3. **Directory Structure**:&lt;BR /&gt;Ensure the following files/directories exist in the build context:&lt;BR /&gt;```bash&lt;BR /&gt;.&lt;BR /&gt;├── Dockerfile&lt;BR /&gt;├── requirements.txt&lt;BR /&gt;├── ollama # Pre-downloaded Ollama binary&lt;BR /&gt;└── dependencies/&lt;BR /&gt;├── mysql-8.0.4/ # MySQL .deb packages&lt;BR /&gt;├── python/ # Python 3.8.18 source&lt;BR /&gt;├── node-v22.16.0-linux-x64.tar.xz&lt;BR /&gt;├── grafana-enterprise-11.6.0.deb&lt;BR /&gt;└── python_packages/ # Pre-downloaded Python wheels&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;4. **Build Command**:&lt;BR /&gt;Run:&lt;BR /&gt;```bash&lt;BR /&gt;docker build -t custom-cdsw:latest .&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;5. **Push to Private Registry (Optional)**:&lt;BR /&gt;For CDSW integration, push the image to a registry accessible by CDSW:&lt;BR /&gt;```bash&lt;BR /&gt;docker tag custom-cdsw:latest &amp;lt;your-registry&amp;gt;/custom-cdsw:latest&lt;BR /&gt;docker push &amp;lt;your-registry&amp;gt;/custom-cdsw:latest&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;### **Key References**&lt;BR /&gt;- Docker images contain application code, libraries, tools, and dependencies .&lt;BR /&gt;- Use `docker inspect` to view details about the image .&lt;BR /&gt;- Dockerfiles are often shared in repositories for transparency .&lt;/P&gt;&lt;P&gt;Let me know if you need further clarification!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 05:52:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-the-root-access-in-the-container-of-the-session/m-p/410114#M252857</guid>
      <dc:creator>SalimAlhajri</dc:creator>
      <dc:date>2025-06-11T05:52:03Z</dc:date>
    </item>
  </channel>
</rss>

