DEV Community

Cover image for Container manager - Docker
Maxime HEBRARD
Maxime HEBRARD

Posted on

Container manager - Docker

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
Enter fullscreen mode Exit fullscreen mode
  • Install Docker Credential Helper (optional), this allows Docker to use the macOS Keychain for credentials
brew install docker-credential-helper
Enter fullscreen mode Exit fullscreen mode
  • Install Colima, this provides a lightweight VM that runs the Docker daemon
brew install colima
Enter fullscreen mode Exit fullscreen mode
  • Install Docker Compose for multi-container setups
brew install docker-compose
Enter fullscreen mode Exit fullscreen mode
  • If advance build options is required, install docker buildx
brew install docker-buildx
Enter fullscreen mode Exit fullscreen mode

Usage

  • To start docker engin
colima start
Enter fullscreen mode Exit fullscreen mode
  • Run a docker image
docker run hello-world
Enter fullscreen mode Exit fullscreen mode

docker hello-world output

Here you confirmed that you can pull a docker image and run it !

Top comments (0)