Add tests and documentation for this new feature. Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>