pre and post hook docker fixes