Refactoring Docker code.