Setup Coreos Cluster Manually with Virtualbox

Recently, I wanted to set up a tiny CoreOS cluster in my laptop, the good news is that with several commands and the existed Vagrantfile offered by the CoreOS official guide, we can setup a cluster in minutes; the bad news is that I don’t like everything perfectly done by Vagrant like a magic box, I want to do it total manually, and there’s no tutorial as I expected. So as I made it work finally, it’s time to share with others.

浅谈Docker Bridge网络模式

本文将简单介绍一下Docker的3中网络模式,然后着重介绍bridge模式的数据传输过程,浅谈Docker容器与宿主机 之间,以及与外部世界的

Mock With Mockito

Unit test takes an important role in software development, which ensures the code quality. Mockito is an open-source mocking framework for unit tests in Java. After trying, I found it very nice and easy to use, so this blog aims to introducing Mockito to you. Why mock? Mock means using a fake thing instead of the original one to help us test, but why do we need that? Martin Fowler’s article Mocks Aren’t Stubs makes a lot sense explainning why.

Setup Jekyll in Windows environment using Docker

Github provides a great service for technique bloggers: Github Pages. Just by creating a repo in GitHub, we can host a domain like http://username.github.io. And with Jekyll we can write blogs with Markdown and preview blog pages locally and conveniently. The problem for me is that my work environment is Windows, and it’s not easy to install Jekyll in Windows(especially in China). So an idea comes out with me is to use Docker.