How to Install Docker on Chromebook

Chromebook market share is growing day by day students are using it in schools and colleges. If you got a Chromebook and you have an interest in developing software and services you must have heard about Docker. It helps developers to create and deploy applications faster in this tutorial you will learn how to install docker on Chromebook step by step.

How to Enable Linux on Chromebook

To use docker on Chromebook we will be utilizing the Linux container on Chrome OS. It’s very easy to install Linux on Chromebook all you need is to follow all the steps carefully.

  1. Open Settings
  2. Locate Linux (Beta) in the sidebar
  3. Click Turn on
  4. At the next window, click Next
  5. Give your Linux a username
  6. Decide how much space you want to dedicate from your internal storage to it (10 GB is recommended)
  7. Click Install

Now you have successfully enabled Linux on Chromebook, now we will utilize Linux to install docker on Chromebook it’s very easy to do you all I need is to copy and paste the following commands in the terminal.

Also See: How to use the snipping tool on Chromebook

How to Install Docker on Chrome OS

Now installing docker is extremely easy on any Chromebook once you have successfully installed the Linux environment onto your Chromebook open the terminal application and enter all the following commands given below in the sequence and it will download and install docker on Chrome OS.

1. Open a terminal on Chromebook and type: sudo apt-get update

2. Install cURL by typing the following command in terminal: sudo apt-get install curl

3. Now we will use cURL to get the latest Docker package: curl -fsSL https://get.docker.com/ | sh

4. Now add your account to the docker group type: sudo usermod -aG docker username (you setup at Linux installation)

5. Now enter the following command to verify the Docker installation: docker run hello-world you will see the following result.

$ docker run hello-world
 
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
b901d36b6f2f: Pull complete 
0a6ba66e537a: Pull complete 
Digest: sha256:8be990ef2aeb16dbcb9271ddfe2610fa6658d13f6dfb8bc72074cc1ca36966a7
Status: Downloaded newer image for hello-world:latest


Hello from Docker.

This message shows that your installation appears to be working correctly.

Also See: How to Install Docker on Mac

How to Uninstall Docker on Chromebook

Uninstalling docker is very easy on Chrome OS enter the following command in the terminal and hit enter:

1. Uninstall the Docker Engine, CLI, and Containerd packages:

sudo apt-get purge docker-ce docker-ce-cli containerd.io

2. Images, containers, volumes, or customized configuration files on your host are not automatically removed. To delete all images, containers, and volumes:

sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd

If you have edited any configuration file you need to delete it manually.

Also Read: How to unblock websites on school Chromebook

More from this stream

Recomended