Unable to add new hosts

This seems to be a problem with later versions of Docker. Version 23 and earlier works fine.