So bar is currently an object with the properties A and B. Any functionality might be a constructor; it just isn't going to normally seem sensible. I ran into this difficulty working with docker Create. What exactly is your docker version? Upgrading to the newest version served me fix the https://villasoldgurgaon.blogspot.com