Sponsored By

Four years ago I wrote how to BUILD (literally compile) Visual Studio Code for a Raspberry Pi ARM machine. Just a few months later in November, community member Jay Rodgers released his labor of love - nightly builds of VS Code for Chromebooks and Raspberry Pi.

Once python3 and pip3 are installed, we can install Docker-Compose using the following command. Sudo pip3 install docker-compose 4. Enable the Docker system service to start your containers on boot. This is a very nice and important addition. With the following command you can configure your Raspberry Pi to automatically run the Docker system. This tutorial showed you how to install Ubuntu MATE on Raspberry Pi 2 and 3. If you followed the steps in this guide, you now know how to prepare an SD card for writing an image file. You also learned how to use Etcher and the terminal to write Ubuntu MATE to an SD card. As a reminder, Ubuntu on Raspberry Pi 4 is not supported yet.

If you want to get unofficial builds of Visual Studio Code running on a Raspberry Pi (I know you have one!) you should use his instructions. He has done a lot of work to make this very simple. Head over to http://code.headmelted.com/ and make it happen for yourself, now!

Jay says:

I've maintained the project for a few years now and it has expanded from providing binaries for Pi to providing support and tools to get VS Code running on low-end ARM devices that might not otherwise support it like Chromebooks (which make up about 60% of the devices in schools now).

The project has really taken off among educators (beyond what I would have thought), not least because they're restricted to the devices provided and it gives them a route to teach coding to students on these computers that might not otherwise be there.

Again, Jay is doing this out of love for the community and the work that makes it happen is hosted at https://github.com/headmelted/codebuilds. I'd encourage you to head over there right now and give him a STAR.

Raspberry Pi 4 Install Docker Error

There's so many community members out there doing 'thankless' work. Thank them. Thank them with a thank you email, a donation, or just your kindness when you file an issue and complain about all the free work they do for you.


I just picked up a Raspberry Pi 4 from Amazon, and I was able to get a community build of VS Code running on it easily!

Open a terminal, run 'sudo -s' and then this script (again, the script is open source):

Jay has done the work! That's just the apt instructions, but he's got Chrome OS, APT, YUM, and a manual option over at http://code.headmelted.com/!

Thank you for making this so much easier for us all.

Love Raspberry Pis? Here's some fun stuff you can do with the Raspberry that you bought, the one you meant to do fun stuff with, and the one in your junk drawer. DO IT!

  • You can even install this week's sponsor Couchbaseon a Raspberry Pi!


Sponsor: Couchbase gives developers the power of SQL with the flexibility of JSON. Start using it today for free with technologies including Kubernetes, Java, .NET, JavaScript, Go, and Python.

Raspberry Pi 4 Docker Install

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.


Raspberry Pi 4 Docker Server

Personally, I like to use Docker containers on my Raspberry Pis as they come with a great layer of abstraction and portability. Here is how to get your Raspberry Pi ready for Docker and Docker-Compose.

1. Setup your Raspberry Pi with Raspbian, Wifi and SSH access

If your Raspberry Pi is already set up, you can skip this step and continue to step 2.

The most straight forward way to install Raspbian on your Raspberry Pi is through the official Raspberry Pi Imager. It comes with all the tools needed to prepare and flash an SD card with the Raspbian version you want to install. For this tutorial, I am assuming, that you are using the smallest Raspbian 'Lite' version.

To ensure, that SSH is enabled on the first start of your Raspberry Pi, we need to add an additional empty file called ssh to the SD card's root directory after is has been flashed with the image.

Raspberry Pi 4 Install Docker Compose

This is especially useful, if you are running your Raspberry Pi in headless mode with no screen or keyboard attached.

If you want to connect the Raspberry Pi to a Wifi network, it might be useful to also provide the network details for the first startup. For this, define a wpa_supplicant.conf file in the same root folder with the following content. Make sure, it uses the line feed (LF) newline character.

If you are unsure about your 2 letter ISO 3166-1 country codes, you can look it up here.

After booting up your device, you can connect to it via SSH by using its IP address, that you will likely get from your router's web interface.

The default username is pi and the standard password is raspberry.

It's highly recommended to change the password on the first connection. You can do this and configure many other useful things in the handy Raspberry Pi Config tool.

2. Install Docker

The connection is set up, it's time to install Docker. Fortunately, Docker provides a handy install script for that.

After the script has finished, add the permissions to the current user to run Docker commands.

Download adobe creative cloud 2020 mac. Reboot the Raspberry Pi to let the changes take effect.

3. Install Docker-Compose

Docker-Compose usually gets installed using pip3. For that, we need to have python3 and pip3 installed. If you don't have it installed, you can run the following commands.

Once python3 and pip3 are installed, we can install Docker-Compose using the following command.

4. Enable the Docker system service to start your containers on boot

This is a very nice and important addition. With the following command you can configure your Raspberry Pi to automatically run the Docker system service, whenever it boots up.

With this in place, containers with a restart policy set to always or unless-stopped will be re-started automatically after a reboot.

5. A sample Docker Compose file


This section shows a quick sample of a Docker-Compose file, which starts three containers that once started will automatically come up, if the Raspberry Pi get fully power cycled. To learn more about the sample project I used here, visit my Docker Speed Test project on GitHub.

To start the containers using Docker-Compose, run the following command.

☝️ Advertisement Block: I will buy myself a pizza every time I make enough money with these ads to do so. So please feed a hungry developer and consider disabling your Ad Blocker.

Coments are closed
Scroll to top