How to install Docker on ChromeOS


Jack Wallen reveals you how to install Docker on your Chromebook so you can start developing containers on the go.

Portland, OR, USA - Feb 4, 2021: Closeup of the Google Chrome logo seen on a Samsung Chromebook 500c isolated on white. Image: Tada Images/Adobe Stock Chromebooks are terrific mobile phones because they’re simple to utilize, protect and quick. Because of those factors, Chromebooks might make for impressive development devices. And if Docker is your advancement environment of choice, you remain in luck. Thanks to Linux, it’s possible to set up Docker on ChromeOS so you can work your container dev magic on the go with ease.

I’m going to reveal you how to install Docker on ChromeOS, a job you must have the ability to complete in a few brief minutes.

SEE: Hiring package: Back-end Designer (TechRepublic Premium)

What you’ll need to set up Docker

To set up Docker, you’ll need a Chromebook with an updated version of ChromeOS.

How to include Linux to your Chromebook

The first thing you should do is enable Linux on your Chromebook. This is done by going to Settings|Advanced|Designers. There, you’ll find Linux Development Environment noted.

Click Switch On (Figure A) and follow the on-screen instructions. This procedure will take a few minutes to finish but, once it’s finished, you’ll see a terminal window opened, where you can begin using Linux on your Chromebook.

Figure A

Enabling Linux on ChromeOS with a single click.

How to set up Docker From the now-open Linux terminal window, upgrade apt with the command:

sudo apt-get upgrade

Once apt has actually upgraded, install the needed dependences with the command:

Must-read designer protection

sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y

With the reliances out of the way, download and install the main Docker GPG secret with:

curl -fsSL|sudo apt-key include –

Add the needed fingerprint:

sudo apt-key finger print 0EBFCD88

Include the official Docker repository with the command:

sudo add-apt-repository “deborah [arch=amd64] $(lsb_release -cs) steady”

Update apt with the command:

sudo apt-get upgrade

Lastly, set up Docker with:

sudo apt-get install docker-ce docker-ce-cli -y

Next, you need to add your user to the docker group with the command:

sudo usermod -aG docker $USER

Close the Linux terminal and log out of your Chromebook. Log back in, open the Linux terminal app and you ought to now be able to run the docker command without sudo, which would be a security threat.

How to check the container implementation

Evaluate your new installation out by running the Hi World container with the command:

docker run hello-world

You should be greeted by the Hi World text in the terminal window. Another example would be deploying the NGINX container with the command:

docker run– name docker-nginx -p 8080:80 -d nginx

Test the release with the command:


You need to see the text output of the NGINX welcome page, that includes the line “Thank you for utilizing nginx.” You could also open the Chrome web browser on your Chromebook and point it to and see the welcome screen in the browser (Figure B).

Figure B

Our NGINX container has successfully released on ChromeOS, thanks to Docker.

Congratulations, you can now develop with Docker on your Chromebook. At this point, Docker must work as expected and you can build your containers and stacks as usual.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the current tech recommendations for business pros from Jack Wallen.


Leave a Reply

Your email address will not be published. Required fields are marked *