Run Everything In Docker Containers (On Your Mac)

If you wish to see the power of docker on your Mac as a way to run all (or many) of your daily apps check this great post by Jess.

However, when you are going to the repo with all the Dockerfiles it’s clear that it was meant to be used on Linux. However, here is a short path to run all of these powerful apps on Mac as well.

# Install socat
brew install socat

# Install xQuartz as our X11 server
brew cask install xquartz

# Run it
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"

# In a new terminal
open -a XQuartz

# Let's test it by running Firefox in Docker 
docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e  jess/firefox

Easy, no?
If you curious to see what I saved you from?
Check this thread on the topic.

Have fun and productive times.

Packages are great not only for software

One thought on “Run Everything In Docker Containers (On Your Mac)

  1. Richi says:

    Hi and thanks for this. I was able to run it, but are getting jittery and low color on it (pages with hi-res images crash). Currently using Catalina and wanted to ask if you have run into the same problems, and if so, how did you resolve it? Thanks.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s