This is caused by the implement of docker, issue opened for this in docker https://github.com/moby/moby/issues/37435. Put port 80 after the hostname(hostname:80) can workaround this.