DEV Community

Cover image for How to Install Docker Desktop on macOS with a Package Manager
junian
junian

Posted on • Originally published at junian.net on

How to Install Docker Desktop on macOS with a Package Manager

Docker is a useful piece of software.
Usually, Developers use it for the development and deployment of their apps.

But we as a user also can benefit from Docker, especially if we want to install and use web-based apps.

Enough intro, let's get started.

I recommend installing the Homebrew package manager first on your macOS. If you don't know how I already wrote it here.

Once you have Homebrew on your Mac, you can install Docker Desktop from the Terminal.

brew install --cask docker
Enter fullscreen mode Exit fullscreen mode

Once finished, the Docker Desktop will be installed in /Applications/Docker.app.
Open the app and finish the setup.

Now let's verify if the Docker running properly.
I usually like to test it by running a basic HTTP server with nginx.

docker run -p 8088:80 nginx
Enter fullscreen mode Exit fullscreen mode

Once finished, open a web browser and visit http://localhost:8088/.

If you see a Welcome to nginx! message then everything is working as expected.

Video Tutorial

I made a video based on what I wrote here.
I hope it can help you to visualize the process.

Subscribe to Junian Dev YouTube Channel

Conclusion

That's all I can write today.

Thanks for reading and see you again!

References

  • Docker: Accelerated Container Application Development

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay