How to Create a Docker Machine with A Bridged Network Adapter

Introduction

In many cases, we need a central Docker machine hosted in a machine available in our local network. But the problem is that when we create a Docker machine in the considered host, it cannot be accessible from the other machines in our local network. This is due to the fact that the recently-created Docker machine gets its IP address from the host-only adapter network which only is visible from the local host. In other words, we can only access the Docker machine from the host which contains the Docker machine. In this article, I will propose a way to make the Docker machine available for any host in the local network.

Create a Docker Machine

First, we need to create a Docker machine. From now on, we will call it "local-docker-host." The command will be like this: