is there a way to change to port from 4000 #31

Closed
opened 2025-11-20 04:15:05 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @jmjamison on GitHub (Nov 6, 2022).

Is there a way to change from port 4000 to 4001 or something else? I've tried changing the command line command but it seems to ignore what I put in. Thanks.

Originally created by @jmjamison on GitHub (Nov 6, 2022). Is there a way to change from port 4000 to 4001 or something else? I've tried changing the command line command but it seems to ignore what I put in. Thanks.
Author
Owner

@jmjamison commented on GitHub (Nov 6, 2022):

Apologies. I should have added I'm running this windows 10, WSL2.

@jmjamison commented on GitHub (Nov 6, 2022): Apologies. I should have added I'm running this windows 10, WSL2.
Author
Owner

@BretFisher commented on GitHub (Nov 14, 2022):

When using docker, you don't need to change the port Jekyll is running on inside the container, because each container gets its own private IP inside docker networks. If you wanted it to run on localhost:8080 (for example, in Docker Desktop + WSL2), then you would run:

docker run -p 8080:4000 -v $(pwd):/site bretfisher/jekyll-serve

Does that help?

@BretFisher commented on GitHub (Nov 14, 2022): When using docker, you don't need to change the port Jekyll is running on inside the container, because each container gets its own private IP inside docker networks. If you wanted it to run on localhost:8080 (for example, in Docker Desktop + WSL2), then you would run: `docker run -p 8080:4000 -v $(pwd):/site bretfisher/jekyll-serve` Does that help?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jekyll-serve#31