Getting Started With Docker On Mac



Docker is a new technology that emerged in the last two years and took the software world by storm. What exactly is Docker and why did it became so popular in such short time?

  1. Getting Started With Docker On Machinery
  2. Getting Started With Docker On Machine
  3. Getting Started With Docker On Mac Pro
  4. Getting Started With Docker On Mac

The goal of this guide is to answer these questions and to get you started with Docker on a Raspberry Pi in no time.We are going to cover the procedure for Windows, OS X and Linux users.

What the heck is Docker and why would I use it?

Started

For Docker Desktop installation instructions, see Install Docker Desktop on Mac and Install Docker Desktop on Windows. Start the tutorial. If you’ve already run the command to get started with the tutorial, congratulations! If not, open a command prompt or bash window, and run the command: docker run -d -p 80:80 docker/getting-started. You can even use Docker Machine from a Linux, Mac, or Windows host. Check out Getting started - Swarms for one possible set-up for the hosts. One of these machines is a manager (called manager1 ) and two of them are workers ( worker1 and worker2 ).

Docker simplifies the packaging, distribution, installation and execution of (complex) applications.

In this context, applications are:

  • blogging platforms like Wordpress or Ghost
  • tools for software collaboration like Gitlab or Gogs
  • file synchronization platforms like OwnCloud or Seafile

These kinds of applications usually consist of many components which need to be installed and configured. This is often a time consuming and frustrating experience for users.

Docker allows administrators or developers to package these applications into something called containers.Containers are self-contained, preconfigured packages that a user can fetch and run with just a single command.By keeping different software components separated in containers they can also be easily updated or removed without influencing each other.There are many more advantages of using Docker; the details of which can be found in the official Docker Documentation.

The Raspberry Pi: An easy, low cost way of getting started with Docker

If we piqued your curiosity and you would like to dive into the magic world of Docker one of the easiest ways is by using Docker on a Raspberry Pi.According to the creators of the Raspberry Pi it is:

a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse.It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python.It’s capable of doing everything you’d expect a desktop computer to do, from browsing the internet and playing high-definition video, to making spreadsheets, word-processing, and playing games.

The goal of this guide is to show you the necessary steps to get you started with Docker on a Raspberry Pi. Please follow the guide that covers your operating system and continue below once you have finished.

Mac

-> The Windows guide for setting up Docker on a Raspberry Pi

-> The Mac OS X guide for setting up Docker on a Raspberry Pi

-> The Linux guide for setting up Docker on a Raspberry Pi

Going wild with Docker! What can you actually do with it?

Getting started with docker on mac pro

As stated in the beginning Docker simplifies the way software is distributed and run. We even said that you would only need one command for that. It is time to prove it.

Just type docker run into the terminal of your Raspberry Pi:

This command will download and start the Docker image hypriot/rpi-busybox-httpd which contains a tiny webserver. Once an image is started it is called a container. An image can also be used to start multiple containers.You can check if your container is running by typing

You should see the container you just started in the container list.

Now you can open up your browser on your workstation and type in the IP address of your Raspberry Pi to see that it really works!

One great aspect of running a Docker-based app is, you can be sure that it works on every machine running Docker with one exception.

Getting Started With Docker On Machinery

Here we run Docker on a Raspberry Pi. So the CPU architecture here is ARM rather than x86/x64 by Intel or AMD. Thus, Docker-based apps you use have to be packaged specifically for ARM architecture! Docker-based apps packaged for x86/x64 will not work and will result in an error such as:

Getting Started With Docker On Machine

Keep this in mind when searching for apps on the Docker Hub - the source for Docker apps/images. If you see the keyword RPI or ARM in the heading or description, this app can usually be used for the Raspberry Pi.

We prepared a couple of Raspberry Pi ready images for your convenience. Try them out now and have fun!

Getting Started With Docker On Mac Pro

Please enable JavaScript to view the comments powered by Disqus.comments powered by

Getting Started With Docker On Mac

Disqus