Broken urls in Jekyll in Docker

I have this problem I have Jekyll site that runs inside docker and the urls are broken because it use as site url.

I’m using this to run docker:

docker run --rm -ti -v $(pwd):/tmp/www -p 8080:4000

and it execute:

CMD jekyll serve --host

I can access http://localhost:8080 but all urls are broken.

Source: StackOverflow