correct docker logic as requested by @victorlowther