[docker] Multi-stage builds

Consider the following scenario: you are going to rolling update your cluster, and it turns out your network bandwidth is limited for some reason and size of built docker image is not small enough. What’s worse, every instance of cluster will need to pull the docker image before start-up…

Date
Categories
Tags
Comments

CoreOS remove early-docker since 1284.0.0

It happens the docker daemon wasn’t alive when I login to the console.

After review the release document, it seems early-docker.target should be remove in all related target. Ref: CoreOS Release 1284.0.0

Date
Categories
Tags
Comments

Published:April 18, 2017 View Post

docker

Leave a comment

Developing with consul on Macbook

For development use, we need to have consul running on localhost. When using a Macbook (Air), we need to specify the “-bind=0.0.0.0” and “-client=0.0.0.0” in order to have programs (tests) access to the consul agent in the container: 

Date
Categories
Tags
Comments

Published:August 15, 2016 View Post

golang mac

Leave a comment