Scripts repository to automate the uninstall of Docker Desktop app on Mac and install and configuration of lima as an alternative.
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
In this script we:
- Install brew (if not installed)
- Stop all docker containers
- Remove all docker's containers, images, volumes, networks and caches,
- Stop docker desktop
- Uninstall docker desktop
- Stop, delete images and remove colima (if installed)
- Uninstall docker and docker-compose (only to be sure of a clean installation)
- Remove .lima folder (only to be sure of a clean installation)
- Install Lima, Docker and Docker-Compose
- Create lima instance with lima.yaml (Configs file for this instance)
- Set newly created instance as docker context
In this script we:
- 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