Skip to content

W3ND31/lima-docker-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages