jekyll-docker icon indicating copy to clipboard operation
jekyll-docker copied to clipboard

enclosing [::1]:4000:4000 in single quotes

Open yassinechih7 opened this issue 2 years ago • 1 comments

running

docker run --rm \
  --volume="$PWD:/srv/jekyll:Z" \
  --publish [::1]:4000:4000 \
  jekyll/jekyll \
  jekyll serve

gives

zsh: no matches found: [::1]:4000:4000

The error message you're seeing suggests that the shell is treating [::1]:4000:4000 as a glob pattern and not finding any matches. To resolve this, I enclosed the publish option in quotes to prevent glob expansion.

yassinechih7 avatar May 24 '23 13:05 yassinechih7

@envygeeks this one seems like a fairly harmless fix, mind 👍🏽?

josegonzalez avatar May 26 '23 23:05 josegonzalez