Docker is a container manager. It allow you to package your base OS and your software in a virtual container, and to run your application almost independently of the platform running it.
Thanks to Shimin Ang that wrote those instructions for me
Licence
Docker itself is open source and free, but its main installer advertised on the official website, Docker Desktop, required a licence fee for "for-profit organization with more than 250 total employees". To avoid any issue we will install an alternative to Docker Desktop, Colima
Install on MacOS
Before reading this post, I suggest you follow Improved Shell (MacOS).
- Open 'Terminal'
- Install Docker CLI
brew install docker
- Install Docker Credential Helper (optional), this allows Docker to use the macOS Keychain for credentials
brew install docker-credential-helper
- Install Colima, this provides a lightweight VM that runs the Docker daemon
brew install colima
- Install Docker Compose for multi-container setups
brew install docker-compose
- If advance build options is required, install docker buildx
brew install docker-buildx
Usage
- To start docker engin
colima start
- Run a docker image
docker run hello-world
Here you confirmed that you can pull a docker image and run it !
Top comments (0)