Setting up a Remote Docker VSCode Development Server (2024)

In this article you will learn how I set up a remote development server for cloud-native Docker apps.

The Why

I recently picked up a cheap 10.1" ARM Chromebook to try out as a light-weight mobile development machine (an Asus C101PA to be specific). I had hoped for a very portable machine that I could develop on with long battery life thanks to ARM, at the cost of some extre build time that I was willing to accept.

The C101PA is a great machine that checked almost all the boxes, it’s a joy to carry around and pretty usable to work on given it’s small size, and the battery life is stellar. The trouble is I can’t actually build most of my projects due to some compatability issues with ARM.

In addition to that, Crostini (ChromeOS’ Linux Container) is still in beta and it shows, I spent weeks trying to assemble a usable development environment, I think I was pretty close so I tried to run a backup that failed, and I lost it all. I couldn’t even restore from a previous backup!

I think it could work one day, it just needs some more time to fully cook, in the meantime I’ve set up a remote development environment that I can use from anywhere (even a Chromebook!), and I’m so pleased with it that I’m actually writing this article on my remote dev server from my desktop workstation, in lieu of the VSCodium installation on my local machine.

Pros

  • Compatibility: My main motivation for trying it at all, if your device has a modern web browser, you can get work done.
  • Persistence: It’s so freeing to be able to just shut down your workstation and walk away knowing you can log in to the web interface from any other machine and have everything exactly as you left it.
  • Correlation: No more hunting for that VSCode extension or some other software that you remember using on another machine but forgot what it was called, or keeping a config.txt file so you know how to set up a new machine down the road, there is only one development environment to maintain, and backups are a breeze.
  • Performance and Endurance: When working remotely on a laptop, all the heavy lifting is done server-side, so you spend less time waiting and get more time between charges, a total win-win.

Cons

  • Connectivity: Obviously, if you can’t access it you can’t use it, but I have tested it with a simulated poor network connection on Chrome, and the experience is actually quite good once the initial page has loaded.
  • Dependence: If you stop maintaining local development environments and something happens to the server, you’ll have some extra work to do before you can be productive. Also, I’m generally a Firefox guy, but code-server works better on Chrome, so that’s another small con in my book.
  • Unknown: I’m not sure what else could go wrong, but I’m going all in so we’ll see what happens!

Requirements

  1. A Linux server or VM (I’m using Ubuntu 18.04)
  2. A cloud-native workflow: I dockerize my apps in development and push pre-built production images to a Docker registry for deployment, if you haven’t tried this workflow I really think you should! (I have an article in the works on this topic, so keep an eye out for that if you’re interested)

Setup

Important Note: This configuration is not very secure, I made a lot of choices that put developer experience over security, so please keep it far away from your production environment, and I don’t recommend exposing this system to the internet, I use a VPN for access instead.

Docker

First things first, we need to get Docker up and running.

Steps taken fromdocs.docker.com

sudo apt install -y apt-transport-https \ ca-certificates curl gnupg-agent \ software-properties-commoncurl -fsSL https://download.docker.com/linux/ubuntu/gpg \ | sudo apt-key add -sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"sudo apt updatesudo apt install docker-ce docker-ce-cli containerd.io

Let’s add your user to the docker group so you can use Docker as a non-root user.

sudo usermod -aG docker YOURUSERNAME

Portainer

Who doesn’t appreciate a nice GUI from time to time? I like to keep Portainer on port 81, and VSCode on port 80, feel free to change it up if you disagree.

These commands will get Portainer running with all the bells and whistles:

docker pull portainer/portainerdocker volume create portainer_datadocker run -d --name portainer_gui \ --restart always \ -e "CAP_HOST_MANAGEMENT=1" \ -p 81:9000 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v portainer_data:/data \ -v /:/host \ portainer/portainer

To update Portainer, just remove it and spin it up again after fetching the latest image (and skip creating the volume since it already exists), your configuration will persist on the portainer_data volume and be re-attached to the new container:

docker stop portainer_guidocker rm portainer_guidocker pull portainer/portainerdocker run -d --name portainer_gui \ --restart always \ -e "CAP_HOST_MANAGEMENT=1" \ -p 81:9000 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v portainer_data:/data \ -v /:/host \ portainer/portainer

After setting a username and password under the Users menu at http://IPADDRESS:81, head to Endpoints > local and set the Public IP to the hosts IP address (or hostname if it’s configured with DNS on your network), so when you click the links on published ports in the containers list it opens the correct URL.

VSCode

This parts a bit tricky, what we’re going to do is spin up the codercom/code-server image with access to your home folder on the host, and the hosts Docker instance, so we can spin up containers on the host from the VSCode container. This isn’t quite the intended use case for the code-server image, but with a little tweaking it works pretty well.

First we need to symlink /home/coder to your users home folder to make bind mounts work on project containers, since the path will be in the context of the host and not the VSCode container which uses coder as a username and home folder, we’ll also create a few directories for bind mounts on the container.

The VSCode image uses ~/project as a workspace by default, so it will mount the path automatically if you don’t specify one. I prefer to work out of a git directory, so I just use project to store things pertinent to the VSCode server since it has to be declared. The vscode directory we’ll mount as the home folder in the VSCode container, to save any extensions and settings you’ve configured for VSCode.

sudo ln -s /home/YOURUSERNAME /home/codermkdir -p ~/vscode ~/git ~/project

Since I plan to re-create the code_server container every now and then with the latest image, I’ll create an install script in the project folder to configure anything that won’t be stored in the vscode directory (home folder).

touch ~/project/install.shchmod +x ~/project/install.shnano ~/project/install.sh

Here’s my script as an example, which will:

  1. Install NodeJS, the FiraCode font, and docker-compose via Python (I know you can just download the executable, but I want Python installed anyway)
  2. Add the coder user to the docker group for non-root access to Docker on the code-server container (You’ll have to restart the container for this to take effect)
  3. Configure git
  4. Install Prettier globally via NPM (after installing the Prettier extension in VSCode, add the line "prettier.prettierPath": "/usr/lib/node_modules/prettier/", to your VSCode config)
  5. Take ownership of the git directory and it’s children, which will be owned by the host machine’s user anytime the VSCode container is re-created

Note: Make sure you have the correct group ID for the docker group, in my case it’s 119, you can check by running getent group docker | awk -F: '{printf "The GID for group %s is %d\n", $1, $3}' on the host machine.

#!/bin/bashcurl -sL https://deb.nodesource.com/setup_12.x \ | sudo -E bash -sudo apt updatesudo apt install -y \ nodejs \ python \ python-pip \ python-openssl \ libssl-dev \ fonts-firacodesudo pip install docker-composesudo groupadd docker -g 119sudo usermod -aG docker codergit config --global user.name "dlford"git config --global user.email "my@email.address"git config --global push.default simplegit config --global credential.helper storesudo npm install --global prettiersudo chown -R coder. ~/git

Next we’ll spin up the VSCode image, make sure you change the password, and the username in the volume mount paths.

docker pull codercom/code-serverdocker run -d --name code_server \ --restart always \ -p 80:8080 \ -e "PASSWORD=replace this text with a secure password!" \ -v "/usr/bin/docker:/usr/bin/docker" \ -v "/var/run/docker.sock:/var/run/docker.sock" \ -v "/home/YOURUSERNAME/vscode:/home/coder" \ -v "/home/YOURUSERNAME/git:/home/coder/git" \ -v "/home/YOURUSERNAME/project:/home/coder/project" \ codercom/code-server

Then run the install script and restart the container to apply the addition of the coder user to the docker group.

docker exec -it code_server /home/coder/project/install.shdocker stop code_serverdocker start code_server

To update VSCode:

docker stop code_serverdocker rm code_serverdocker pull codercom/code-serverdocker run -d --name code_server \ --restart always \ -p 80:8080 \ -e "PASSWORD=replace this text with a secure password!" \ -v "/usr/bin/docker:/usr/bin/docker" \ -v "/var/run/docker.sock:/var/run/docker.sock" \ -v "/home/YOURUSERNAME/vscode:/home/coder" \ -v "/home/YOURUSERNAME/git:/home/coder/git" \ -v "/home/YOURUSERNAME/project:/home/coder/project" \ codercom/code-serverdocker exec -it code_server /home/coder/project/install.shdocker stop code_serverdocker start code_server

Usage

You can now access your remote VSCode server from the host machine’s IP address on port 80 (or domain name if you’ve configured it on your network), and Portainer on port 81, using it is pretty straightforward:

  1. Clone any Dockerized project into the ~/git directory from VSCode’s terminal, open and start the project (e.g. docker-compose up).
  2. Access the project in development from it’s respective port on the host machine (e.g. 3000, 8000, etc.)
  3. That’s it, now you can get some work done!

Recommended Extensions

Not all VSCode extensions will work on code-server, but I’ve only run into a couple that don’t so far, here’s a few I’d recommend:

  1. Docker (PeterJausovec): Adds syntax highlighting for Docker related files, and adds a Docker Explorer to the main panel where you can start/stop/attach/view logs for containers on the host.
  2. Prettier - Code Formatter (esbenp): Code formatter, don’t forget to enable the “Format on save” option.
  3. GitLens - Git supercharged (eamodio): Git history explorer.
  4. One Dark Pro (zhuangtongfa): My theme of choice, the dark theme for dlford.io was heavily inspired by One Dark Pro.
  5. vscode-icons (vscode-icons-team): This should just be added to VSCode by default in my opinion.
  6. Bracket Pair Colorizer (CoenraadS): This one too.

Tips

  1. You can create the files update-portainer.sh and update-vscode.sh in /usr/local/bin/ on the host, and copy the respective commands to each file, adding #!/bin/bash to the top, and then run sudo chmod +x /usr/local/bin/update-*.sh. Now you can just run update-portainer.sh or update-vscode.sh from the host machine to run those updates with a single command.
Setting up a Remote Docker VSCode Development Server (2024)

FAQs

How does VS Code connect to remote Docker? ›

Attach VSCode to a running container using one of the folling options: Right-click on the desired container and chose "Attach Visual Studio Code" Press F1 and chose">Remote-Containers: Attach to Running Container..." and select the container of your choice afterwards.

How do I connect to a remote server using Visual Studio code? ›

Connect to a remote host

Verify you can connect to the SSH host by running the following command from a terminal / PowerShell window replacing user@hostname as appropriate. In VS Code, select Remote-SSH: Connect to Host... from the Command Palette (F1, Ctrl+Shift+P) and use the same user@hostname as in step 1.

How do I create a remote Docker host? ›

How to Connect to Remote Docker using docker context CLI
  1. Pre-requisite: ...
  2. Listing the current context values. ...
  3. Run a new Docker container on Node 2. ...
  4. Listing the container. ...
  5. Setting the Environment Variable. ...
  6. Verify you configured variable. ...
  7. Configure SSH to trust the host. ...
  8. Connecting to Nodes with DOCKER_HOST.
4 May 2022

What is VS Code remote development? ›

VS Code Remote Development. Visual Studio Code Remote Development allows you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment. You can: Develop on the same operating system you deploy to or use larger or more specialized hardware.

How do I SSH into remote Docker container? ›

Connect to remote Docker over SSH
  1. Use ssh-keygen or similar to get and configure a public/private key pair for SSH authentication. ...
  2. Configure ssh-agent on the local system with the private key file produced above. ...
  3. Verify that your identity is available to the agent with ssh-add -l .

How do I run a Docker command remotely? ›

Running on a remote host
  1. Manual deployment by copying project files, install docker-compose and running it. A common usage of Compose is to copy the project source with the docker-compose. ...
  2. Using DOCKER_HOST environment variable to set up the target engine. ...
  3. Using docker contexts.
2 Mar 2020

How do I setup a remote server connection? ›

Remote Desktop to Your Server From a Local Windows Computer
  1. Click the Start button.
  2. Click Run...
  3. Type “mstsc” and press the Enter key.
  4. Next to Computer: type in the IP address of your server.
  5. Click Connect.
  6. If all goes well, you will see the Windows login prompt.
13 Dec 2019

How do I connect to a remote server using an SSH key? ›

To initiate an SSH connection to a remote system, you need the Internet Protocol (IP) address or hostname of the remote server and a valid username. You can connect using a password or a private and public key pair. Because passwords and usernames can be brute-forced, it's recommended to use SSH keys.

How do I remote into a virtual server? ›

Connect to the virtual machine

At the beginning of the virtual machine page, select Connect. On the Connect to virtual machine page, select RDP, and then select the appropriate IP address and Port number. In most cases, the default IP address and port should be used. Select Download RDP File.

How do I add a remote to the Docker repository? ›

Click on the Remote tab on the Repositories page and add a new Remote Repository with the Docker package type. Enter the Repository Key “docker-hub-remote” and keep the rest of the default settings.

Does Docker need IP forwarding? ›

Docker relies on the host being capable of performing certain functions to make Docker networking work. Namely, your Linux host must be configured to allow IP forwarding.

How do I deploy a Docker container to a server? ›

How To Perform Docker Deployment of An Application With Docker Containers?
  1. Install Docker on the machines you want to use it;
  2. Set up a registry at Docker Hub;
  3. Initiate Docker build to create your Docker Image;
  4. Set up your 'Dockerized' machines;
  5. Deploy your built image or application.

Can VS Code be used for app development? ›

Dave Holoway, a compelling Senior Developer in London, created the extension "Android" to build and debug Android apps using VS Code, once you already have the right Android SDK installed.

Is VS Code a PWA? ›

PWABuilder Studio makes VSCode the BEST developer environment for building Progressive Web Apps. Using it, you can: Start building a brand new PWA using the pwa-starter template. Convert an existing web app into a PWA.

Is VS Code good for development? ›

Built with love for the Web

VS Code includes enriched built-in support for Node. js development with JavaScript and TypeScript, powered by the same underlying technologies that drive Visual Studio. VS Code also includes great tooling for web technologies such as JSX/React, HTML, CSS, SCSS, Less, and JSON.

How do I connect a Docker container to the outside of the host? ›

By default docker containers works in a isolated network. But if you want to connect to your container outside from host machine, you have to expose your container. Means you have to apply NAT/PAT concept to do this task. When you run your command to launch container, you have to use -p flag like -p 8080:80.

Can you SSH with Visual Studio? ›

In the latest version of Visual Studio, users are now able to leverage the integrated terminal to access their remote targets when developing for remote machines from Windows. This updated terminal includes an interactive SSH shell.

What is SSH remote command? ›

SSH Remote Command allows a connection with a SSH server to be established and that shell scripts to be executed. Take a look at the configuration parameters of the component: Account: for the component to make an authentication to a SFTP server, it's necessary to use a BASIC or PRIVATE-KEY-type account.

Can Docker containers run anywhere? ›

Standard: Docker created the industry standard for containers, so they could be portable anywhere. Lightweight: Containers share the machine's OS system kernel and therefore do not require an OS per application, driving higher server efficiencies and reducing server and licensing costs.

Can you run Docker in a virtual machine? ›

In general, Docker recommends running Docker Desktop natively on either Mac, Linux, or Windows. However, Docker Desktop for Windows can run inside a virtual desktop provided the virtual desktop is properly configured.

What is Docker remote API? ›

Docker Engine API (1.41)

It is the API the Docker client uses to communicate with the Engine, so everything the Docker client can do can be done with the API. Most of the client's commands map directly to API endpoints (e.g. docker ps is GET /containers/json ).

What is the difference between local and remote server? ›

Understanding the difference between a Local Server and a Remote server is very important. If you are referring to a Local Server, this means that you have a server setup on your current machine. When the server is Remote, this just means that it is on another computer.

How can I access my server from outside my network? ›

How does it work?
  1. Download your firewall's VPN client software - usually available for free from the vendors website (SonicWall, Checkpoint, WatchGuard, Meraki, etc).
  2. Install the software.
  3. Enter your organisation's public IP address.
  4. Enter your username and password and connect.
18 Mar 2020

What is the difference between cloud and remote server? ›

In the cloud, you can access your files from any device at any time. With remote desktop software, you can access a specific desktop, the files, the applications, and everything else related to that desktop from a remote location.

Is OpenSSH the same as SSH? ›

OpenSSH is the open-source version of the Secure Shell (SSH) tools used by administrators of Linux and other non-Windows for cross-platform management of remote systems. OpenSSH has been added to Windows (as of autumn 2018), and is included in Windows Server and Windows client.

Is SSH used for remote access? ›

An inherent feature of ssh is that the communication between the two computers is encrypted meaning that it is suitable for use on insecure networks. SSH is often used to "login" and perform operations on remote computers but it may also be used for transferring data.

Does SSH work remotely? ›

In addition to providing strong encryption, SSH is widely used by network administrators to manage systems and applications remotely, enabling them to log in to another computer over a network, execute commands and move files from one computer to another.

What is the difference between remote and virtual? ›

Remote workers may come from different parts of the globe and they may or may not have a face-to-face meeting with their colleagues or manager. A virtual team is composed of members who may be working together on the same project but report to different managers or team leaders.

Does a virtual server have an IP address? ›

Virtual servers that use a unique IP address and port combination are known as hardware virtual servers. Each web site configured on a hardware virtual server has a single IP address.

Can you use a VM as a server? ›

You can have many virtual servers running from one physical machine. They're completely separated from each other and from the physical machine. There are many benefits of using virtual servers instead of physical hardware, and setting up a virtual server should be something every enterprise considers as it grows.

What is the difference between a Docker Registry and repository? ›

While a container repository is a collection of related container images used to manage, pull and push images, a container registry is a collection of repositories made to store container images. Container registries can store container images as well as API paths and access control rules.

What is Docker repository URL? ›

You can use any of those with docker pull : docker pull index.docker.io/library/alpine. docker pull docker.io/library/alpine. docker pull registry-1.docker.io/library/alpine.

Is Docker still relevant in 2022? ›

Is Docker Still Relevant In 2022? Docker remains relevant to most container projects, applications, and developers today thanks to its modern tools, compatibility, large community, and ease of use. However, Docker Inc has undergone changes recently, among them changes to Docker Desktop licensing.

Are Docker containers a security risk? ›

Docker containers are, by default, quite secure; especially if you run your processes as non-privileged users inside the container. You can add an extra layer of safety by enabling AppArmor, SELinux, GRSEC, or another appropriate hardening system.

Do Docker containers get their own IP? ›

By default, the container is assigned an IP address for every Docker network it connects to. The IP address is assigned from the pool assigned to the network, so the Docker daemon effectively acts as a DHCP server for each container. Each network also has a default subnet mask and gateway.

Can I use Docker as a server? ›

Run Anywhere. Docker has the same promise. Except instead of code, you can configure your servers exactly the way you want them (pick the OS, tune the config files, install binaries, etc.) and you can be certain that your server template will run exactly the same on any host that runs a Docker server.

Which server is best for Docker? ›

The 15 Best Docker Hosting Platforms of 2021
  • HostForLIFE.
  • HostPresto.
  • IBM Cloud.
  • Jelastic.
  • Joyent Triton.
  • Microsoft Azure.
  • Quay.io.
  • Sloppy.io.
30 Aug 2022

Is Docker server still free? ›

Docker Desktop may be used for free as part of a Docker Personal subscription for: Small companies (less than 250 employees AND less than $10 million in annual revenue) Personal use. Education and learning (as a student or instructor, either in an academic or professional environment)

Which is better VS Code or Visual Studio? ›

If you need to collaborate with team members on development or debugging, then Visual Studio is the better choice. If you need to do serious code analysis or performance profiling, or debug from a snapshot, then Visual Studio Enterprise will help you. VS Code tends to be popular in the data science community.

Why is VS Code so popular? ›

It's Free (open source). It's written in Typescript, meaning bugs in the program are less weird than other Electron things are, usually. (Not everyone uses strong types when writing JavaScript apps, and that's terrible.)

Can I use VS Code instead of Android Studio? ›

Both the IDE are really good. But Android Studio takes more time to open and it also consume more memory than VS Code. If you are beginner then go for Android Studio but after some time you can shift to VS code.

Is PWA still a thing? ›

In the beginning, PWA is only available on Chrome OS and Android; nowadays, PWA-based applications are also available on Microsoft Store. According to Microsoft news, starting in May 2022, the PWA-based application will allow users to download content for offline consumption.

Does a PWA replace a website? ›

A Progressive Web App (PWA) is just a website with some extra features. Adding these features will turn your website into a PWA so this means that basically any website can be a PWA.

Does Google prefer PWA? ›

Google likes this because it can consume the content and score the page for search results. Too much JavaScript and they put the page on a queue and will get around to it if they have time, later.

Is there a better IDE than VS Code? ›

There are better alternatives for most popular languages. C# - Use Visual Studio Community, it's free, and far better than Visual Studio Code. Go - Goland. Python - PyCharm.

Is VS Code better than Dev C++? ›

The learning curves of both CodeBlocks and DevC++ are same in almost all aspects. If I have to suggest one, I will not suggest any of them. Instead I would go for, VSCode. Because it pays better interest on every second you invest in learning.

Is Visual Studio 2022 better than Visual Studio Code? ›

For 90% or more developers, VS Code is a better choice for solving the never-ending debate of Visual Studio vs Visual Studio Code. VS Code is a cross-platform code editor that can easily run on macOS, Windows, and Linux.

› watch ›

Visual Studio Code (or VSCode) is a open source and cross platform text editor by Microsoft. In this video we take a look at the Docker, Kubernetes and Helm ...
Learn how to develop apps with Visual Studio Code, and use its features to create and test a very simple web application.
It's not a .NET app, but it is written using Electron, a project from Github that makes it possible to develop desktop apps for Windows, macOS and Linux usi...

How do I connect my VS Code to AWS? ›

Connect to AWS through the Toolkit for VS Code
  1. Open VS Code.
  2. To open the Command Palette, on the menu bar, choose View, Command Palette. ...
  3. Search for AWS and choose AWS Toolkit Connect to AWS.
  4. Choose a profile from the list. ...
  5. Open the AWS Toolkit Explorer Side Bar, which we call the AWS Explorer, to verify the connection.

How does VS Code connect with GitLab? ›

Set up GitLab with Visual Studio Code from Scratch
  1. Step 1: Download and configure git.
  2. Step 2: Download and Install Visual Studio Code.
  3. Step 3: Create a GitLab account and configure it to use Visual Studio Code. 3.1 Create an account. ...
  4. Step 4: Install and configure GitLab Workflow extension.

What is VS Code remote containers? ›

The Visual Studio Code Remote - Containers extension lets you use a Docker container as a full-featured development environment, which helps ensure a consistent environment across developer machines and makes it easy for new team members and contributors to get up and running.

Does VS Code sync across devices? ›

Settings Sync lets you share your Visual Studio Code configurations such as settings, keybindings, and installed extensions across your machines so you are always working with your favorite setup.

How do you configure Visual Studio Code to remote SSH to an AWS instance? ›

Obtain your AWS Credentials and SSH Key
  1. You can find your AWS credentials under AWS Details of your AWS Academy account.
  2. Download the SSH key (labsuser.pem) file to your local computer. ...
  3. Open up Visual Studio Code.
  4. Click on the Open a Remote Window icon at the bottom left-hand corner of the window.
  5. Select Connect to Host.
13 Mar 2022

How do you add a connection in VS Code? ›

In Visual Studio Code, press Ctrl+Shift+P (or F1) to open the Command Palette. Select MS SQL:Connect and choose Enter. Select Create Connection Profile. Follow the prompts to specify the new profile's connection properties.

How do I SSH into an EC2 instance? ›

Connect to your EC2 Instance
  1. Open your terminal and change directory with command cd, where you downloaded your pem file. ...
  2. Type the SSH command with this structure: ssh -i file.pem username@ip-address. ...
  3. After pressing enter, a question will prompt to add the host to your known_hosts file. ...
  4. And that's it!

How does Git integrate into VS Code? ›

Enable Git in VS Code

Go to File > Preferences. Go to Settings. Type Git: Enabled in the search bar. Make sure that the box is ticked.

How does GitHub connect to VS Code? ›

Once you've installed the GitHub Pull Requests and Issues extension, you'll need to sign in. Follow the prompts to authenticate with GitHub in the browser and return to VS Code. If you are not redirected to VS Code, you can add your authorization token manually.

Can Visual Studio Connect GitLab? ›

In Visual Studio, click "Connect" beside GitLab. Enter your GitLab Username and paste in the Access Token.

Can I run Visual Studio in a Docker container? ›

The Visual Studio Code Dev Containers extension lets you use a Docker container as a full-featured development environment. It allows you to open any folder inside (or mounted into) a container and take advantage of Visual Studio Code's full feature set.

Should I develop inside a Docker container? ›

It's not essential to develop for Docker, inside Docker.

You use a Docker container as your development environment. This is especially useful if you need special software installed in your development environment.

How do I remote into a container? ›

SSH into a Container
  1. Use docker ps to get the name of the existing container.
  2. Use the command docker exec -it <container name> /bin/bash to get a bash shell in the container.
  3. Generically, use docker exec -it <container name> <command> to execute whatever command you specify in the container.

Is VS better than VS Code? ›

If you need to collaborate with team members on development or debugging, then Visual Studio is the better choice. If you need to do serious code analysis or performance profiling, or debug from a snapshot, then Visual Studio Enterprise will help you. VS Code tends to be popular in the data science community.

Is VS Code or VS faster? ›

Visual Studio vs Visual Studio Code - Differences

VS is slower when it comes to performing across different platforms. The processing speed is slower. VS Code is comparatively faster. Visual Studio has a free editor for developers to use but also comes with a better and paid IDE version.

Is VS Code compatible with M1? ›

Users on Macs with M1 chips can now use VS Code without emulation with Rosetta, and will notice better performance and longer battery life when running VS Code.

Top Articles
Latest Posts
Article information

Author: Rob Wisoky

Last Updated:

Views: 5872

Rating: 4.8 / 5 (68 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Rob Wisoky

Birthday: 1994-09-30

Address: 5789 Michel Vista, West Domenic, OR 80464-9452

Phone: +97313824072371

Job: Education Orchestrator

Hobby: Lockpicking, Crocheting, Baton twirling, Video gaming, Jogging, Whittling, Model building

Introduction: My name is Rob Wisoky, I am a smiling, helpful, encouraging, zealous, energetic, faithful, fantastic person who loves writing and wants to share my knowledge and understanding with you.