

The image will be created and should be visible when you run docker images. This will define an image based on the Alpine images and runs the command CMD. Ĭreate a file named Dockerfile with the following contents : This implicitly also shows that we’re dealing with OpenJDK instead of Oracle Java. My first step was something even simpler than the obligatory ‘Hello World’, just print the Java version. I picked openjdk:alpine because its description sounded pretty good : “Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.” Create a simple image that prints the java version The official java image for Docker is deprecated and the openjdk image is suggested as its successor. I wanted a light weight image with just a jdk. It still has a few rough edges on the networking part, but good enough to use during development or create images that will run on a Linux production environment.

Docker for Macĭocker for Mac is finally usable.

Running Docker on a Virtual Machine was a no-go for me, it kind of defeats the purpose of Docker and I was really happy with Vagrant. A long while ago I gave Docker for Mac a shot, but it wasn’t really mature yet. I will also provide some links to help you do some real life things with Docker.įor a long time I thought Docker was a big hype, but it seems things got more serious.
Docker for mac 0.0.0.0 ip address how to#
After this description I’ll show you the obstacles I encountered and how to solve them. I will run a Zookeeper as an example to get experience with Docker. It wasn’t a really smooth ride so I decided to write an article about it. A few weeks ago I finally gave Docker a shot.
