Tutorial
  • Research Skill Bootcamp
    • Overview
    • Introduction to Research
    • Literature Review
    • Latex, Overleaf and Template
    • Latex, use TikZ to draw diagram
    • Introduction to Pytorch
    • Introduction to Neural Networks, MLP, CNN, RNN, Transformer
    • Problem Formulation and Experiment Design
    • Before Vision Becomes Reality
  • AI Engineer Bootcamp
    • Poster
    • Introduction
    • Development Environment Setup
    • Docker
    • Git, GitHub and Agile
    • Introduction to RAG
    • Full Stack Intro, Demo and Setup
    • Python Package Development
    • Databases
    • React
    • Django
    • GraphQL and Hasura
    • Authentication and Authorization
    • Deploy and CI/CD
    • Project Demo
    • External Resources
    • Knowledge Graph and GraphRAG
  • Dev Setup
    • How to install Docker
    • Docker 101
  • GPU Resources
    • HPC 101
    • Kaya
      • Demo project
      • Interactively use Kaya with JetBrains Gateway
      • Battle notes
      • Run experiment on Multiple GPU in Kaya
    • DUG
      • DUG HPC FastX connection Guide for Linux
  • Background Knowledge
    • Public Available LLM
      • Self-Hosted LLM
      • Quantization demo
      • Public Open LLM API
Powered by GitBook
On this page
  • Mac
  • Windows
  • Linux
  1. Dev Setup

How to install Docker

For Mac, Linux, Windows

PreviousDev SetupNextDocker 101

Last updated 9 months ago

To install it, all you need to do is downing it:

And then install it for Mac and Windows Users

Linux Users will require you to run some commands, but should not be hard.

Mac

The installation is simple, but you do need to confirm whether you are M1/M2/M3 (ARM) Chips or Intel Chips, they are different options when you are trying to download it.

If you are the M1/M2/M3 Chips, download the Apple Chip version. If you are holding an old Mac with Intel Chip, then download the Intel Chip version.

After you downloaded the .dmg file, follow the instruction to do the drag and drop.

After it is installed, open and start it.

For ARM Chip users, make sure you have enabled "Use Rosetta for x86_64/amd64 emulation on Apple Silicon"

Think about why you need to do this?

And then allocate proper amount of resources to the docker in Resources tab.

Make sure you click "Apply and Restart" After you have done the changes.

After this, open your terminal, run docker and docker compose to make sure it works.

Windows

It will be similar process as Mac, download it, double click to install it.

Then open the Docker Desktop, and the settings:

We mentioned WSL2 in previous Local environment setup, make sure you have that, as Linux provides better developer development experiment.

Then tick the box, Use the WSL2 based engine, this will allow you to use docker inside the WSL2. Then apply and restart.

Also, allocate proper resources to the docker engine.

Linux

This is official documentation for install docker in Ubuntu

If you have WSL2 + Ubunut22.04 installed in your machine while you are Windows, you should also need to do the following steps.

First you will need to open the terminal in your Linux system, or Open the terminal of the ubuntu22.04 for windows users.

The follow all the instructions there.

It should just work.

After everything is done.

Run

docker --version
docker compose --version
# confirm they all running for Mac, Windows or Linux
https://www.docker.com/products/docker-desktop/