📜  docker install on mac m1 - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:40:49.260000             🧑  作者: Mango

Docker Install on Mac M1 - Shell/Bash

Docker is a powerful platform for developing, testing and deploying applications in containers. In this tutorial, we will guide you through the process of installing Docker on Mac M1 using Shell/Bash.

Prerequisites
  • Mac M1 machine
  • Command Line Interface (CLI)
Steps to Install Docker on Mac M1 - Shell/Bash
  1. Open Terminal on your Mac M1.

  2. Update Homebrew using the following command:

brew update
  1. Tap into the latest Homebrew packages using the command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Add the Homebrew package's location to your PATH environment variable by adding the following line to your shell configuration file:
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
  1. Use Homebrew to install Docker using the command:
brew install docker
  1. Verify Docker is installed and running correctly by running the Docker hello world container using the following command:
docker run hello-world
  1. (Optional) Install Docker Compose using the command:
brew install docker-compose
Conclusion

Congratulations! You have successfully installed Docker and Docker Compose on your Mac M1 using Shell/Bash. Now, you are ready to create and deploy applications in a containerized environment.