So bar is currently an object Together with the properties A and B. Any functionality is usually a constructor; it just won't always sound right. I bumped into this challenge working with docker Establish. What is your docker version? Upgrading to the most up-to-date version served me address The difficulty! https://villasoldgurgaon.blogspot.com