Skip to content

Latest commit

 

History

History
114 lines (88 loc) · 4.09 KB

1-install-docker.md

File metadata and controls

114 lines (88 loc) · 4.09 KB

Docker Logo


Index


Install Docker

  • We recommand you to use Docker Desktop, which is a really good tools to manage your docker containers
  • It provides a lot of great features to make docker easier
  • For Windows/WSL and Mac, Docker will run a tiny VM inside your host machine to run Docker inside

WSL

WSL Steps

  • Accept this box
    • Use WSL2 instead of HyperV
  • Agree CGV
  • May need a reboot for updating Linux kernel
  • Will appear an additionnal set up
  • Finish this set up and its done

Docker Desktop Tweaks

  • Can login to DockerHub for pulls images
  • Go Task Bar -> Right Click on Docker -> Settings
    • Go to Resources
    • WSL Integration : accept this
      • Enable integration with my default WSL distro
    • Plus, in this menu you have to enable Docker for each subsystem you want

Problems when installing

An unexpected error occured
  • Failed to deploy distro docker-desktop
  • This happen when you never run virtualisation inside your Windows
  • Need BIOS exetensions enabled
  • Had to enable virtualisation

Mac

Mac Steps

  • Choose the right .dmg file according to your MacOS Version
  • Launch the APP
  • Accept CGU

Preferences

  • All Preferences and Settings are in top right of the screen : Click on the Whale Icon to go in
  • You can log on DockerHub to pulls images from the hub
  • Go to Preferences -> Resources -> We can adjust the CPU usage, RAM or Disk usage for advanced using
    • Even if we put 8GO RAM, and Docker dont use it, it wont use it
  • Go to Experimental Features
    • Enable VirtioFS : grants speed of file transfer between the machine and containers

Linux

  • This tuto may not work on all Linux Distribution

Requirements

  • There is some requirements for installing on Linux
sudo apt-get install ca-certificates curl gnupg lsb-release
  • Each distro is different on Linux
  • According to the distro, go to Docs and follow steps ...

Linux Docker Desktop Tweaks

  • You may want to login on DockerHub to pulls images

  • Go to Preferences -> Resources -> Advanced

    • Allow you to manage some resources allowed to Docker (CPU, RAM, Disk ...)
  • Go to Preferences -> Resources -> Sharing

    • Care on the path able to share with Docker containers. You want that your source code is inside those path to not get error later ad-warning

Problem Credential store not initialised

  • This error can occur after launching Docker Desktop
  • Have to generate GPG Keys, always tuto on dockers docs ...

Sources