12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Run VSCodium Containerized in Docker</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Browser Based,Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Code Editor,Developer,Free Open Source Software,IDE,Linux,Source Code Editor,VSCode,VSCodium,Visual Studio Code,Docker Simplified,Docker Tutorial,Docker,Docker Container,Docker How To,Docker Made Simple,Homelab,Containerize,Containers,Open Source Software,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Run VSCodium Containerized in Docker">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="12/22/2024 09:26:07 PM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Run VSCodium Containerized in Docker</h1>
- </div>
- <div></div>
- <div id="content">
- <h2>What is VSCodium?</h2>
- <blockquote><em>VSCodium is a clone of Microsoft’s Visual Studio Code. The project’s sole aim is to provide you with ready to use binaries without Microsoft’s telemetry and tracking code. -<a href="https://vscodium.com/" target="_blank">https://vscodium.com/</a></em></blockquote>
- <h2>Installing Docker</h2>
- <ol>
- <li>Log into the Linux Docker host and run the following commands in a terminal window
- <div class="codeBlock"># install prerequisites<br />
- sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y<br />
- # add docker gpg key<br />
- curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -<br />
- # add docker software repository<br />
- sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"<br />
- # install docker<br />
- sudo apt install docker-ce docker-compose containerd.io -y<br />
- # enable and start docker service<br />
- sudo systemctl enable docker && sudo systemctl start docker<br />
- # add the current user to the docker group<br />
- sudo usermod -aG docker $USER<br />
- # reauthenticate for the new group membership to take effect<br />
- su - $USER</div>
- </li>
- </ol>
- <h2>Running VSCodium</h2>
- <ol>
- <li>Continue with the following commands in a terminal window
- <div class="codeBlock"># list current uid and gid, note these for later<br />
- id $user<br />
- # create working directories<br />
- mkdir ~/docker/vscodium/{config,code} -p<br />
- # run the vscodium docker image<br />
- # replace PUID, GUID with the output of the id $user command above<br />
- docker run -d --name=vscodium --cap-add=IPC_LOCK -e PUID=1000 -e PGID=1000 -e TZ=America/New_York -p 8003:3000 -v ~/docker/vscodium/config:/config -v ~/docker/vscodium/code:/code --shm-size="1gb" --restart unless-stopped lscr.io/linuxserver/vscodium:latest</div>
- </li>
- <li>Open a web browser and navigate to http://localhost:8003</li>
- <li>Welcome to VSCodium</li>
- </ol>
- <p>Source: <a href="https://hub.docker.com/r/linuxserver/vscodium" target="_blank">https://hub.docker.com/r/linuxserver/vscodium</a></p> </div>
- </div>
- </body>
- </html>
-
|