Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.22 KB

File metadata and controls

41 lines (28 loc) · 1.22 KB

Scripts for using Docker with Lima

Scripts repository to automate the uninstall of Docker Desktop app on Mac and install and configuration of lima as an alternative.

Instructions

First of all, type the following commands to enable script's execution:

chmod +x install_lima.sh && chmod +x start_lima.sh

After these commands, the scripts could be run as the following commands:

./install_lima.sh && start_lima.sh

install_lima.sh

In this script we:

  1. Install brew (if not installed)
  2. Stop all docker containers
  3. Remove all docker's containers, images, volumes, networks and caches,
  4. Stop docker desktop
  5. Uninstall docker desktop
  6. Stop, delete images and remove colima (if installed)
  7. Uninstall docker and docker-compose (only to be sure of a clean installation)
  8. Remove .lima folder (only to be sure of a clean installation)
  9. Install Lima, Docker and Docker-Compose
  10. Create lima instance with lima.yaml (Configs file for this instance)
  11. Set newly created instance as docker context

start_lima.sh

In this script we:

  1. Start lima with the instance created on above script (Needed only once per each system reboot/shutdown )

PS: This script could be set to run at each boot