run  local-only Docker registry

Edit
equivalent Web Development
Public
docker



Run local registry bound to 127.0.0.1



docker run -d \
--name registry \
-p 127.0.0.1:5000:5000 \
-v /var/lib/registry:/var/lib/registry \
registry:2



  • Runs the official Docker registry image (registry:2)
  • Binds only to localhost → not accessible from your LAN
  • Persists images under /var/lib/registry on your host





docker tag myapp:latest localhost:5000/myapp:latest



problem with kamal2 : if I configure kamal to push to repository 120.0.0.1:5000 the buildx kamal container have no access to this (no network mapping) so only way to be able to push to local would be to expose the port 5000 and push to outside world 😒 so I abondon kamal local registry setup. maybe kamal 3 will solve this

Payment successful

Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.