docker install mac code example
Example 1: docker-machine install mac brew
brew install docker docker-machine
Example 2: installing docker on mac using brew
$ brew install docker docker-machine$ brew cask install virtualbox-> need password-> possibly need to address System Preference setting$ docker-machine create --driver virtualbox default$ docker-machine env default$ eval "$(docker-machine env default)"$ docker run hello-world$ docker-machine stop default
Example 3: install docker on mac
softwareupdate --install-rosetta
Example 4: docker run in mac
docker container run --name web -d -p 8080:80 -v
$PWD:/usr/share/nginx/html:ro -d nginx