Git Product home page Git Product logo

Comments (5)

stephenh avatar stephenh commented on August 31, 2024

Yes, both the mirror client and mirror server commands accept a -p 1234 port argument.

from mirror.

rameshar16 avatar rameshar16 commented on August 31, 2024

Thank you @stephenh for your quick response.

from mirror.

rameshar16 avatar rameshar16 commented on August 31, 2024

Hi @stephenh,

I have added the "--expose 5001 -p 5001:5001 " to the docker run command, but still, I am seeing the container is running with the default port '49172'. PFB log entry for your reference. Please let me know if I missed anything here and help with fixing the issue.

2020-03-26 08:34:32 INFO Listening on 0.0.0.0:49172, version unspecified

Thanks and Regards,
Ramesh

from mirror.

stephenh avatar stephenh commented on August 31, 2024

I do not regularly run the docker command, but the -p your passing is being interpretted as a docker parameter and not a parameter that is passed to mirror that is running within docker.

If you want 5001 on your local machine to be used, you can leave mirror running on 49182 within docker, and then just map 49172 -> 5001, i.e. something like:

docker run --rm --init -it -u $(id -u):$(id -g) -v $(pwd):/data -p 5001:49172 \
  quay.io/stephenh/mirror server

Or maybe swap the 5001/49172, not sure what the right order is.

from mirror.

rameshar16 avatar rameshar16 commented on August 31, 2024

Thank you @stephenh

from mirror.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.