docker custom images warehouse

Warehouse custom images - equivalent source yum
  First touch a file daemon in / etc / docker below, and write into the file, as follows:
   
  {
  "insecure-registries" : [192.168.1.88:5000]
  }
  # In front of a fixed format. Write ip ip and port behind an array of machines, if you forget the previous format, you can use the man dockerd inquiry json format!
  # C / s at both ends have to write such a document, exactly the same
   
  start up:
  docker run -itd -p 5000:5000 registry
  # Knocking on the command line, do not forget to add d
   
  use:
  docker tag busybox:latest 192.168.1.88:5000/busybox:latest
  # Hit mark, keep the back of the mirror and address of a private warehouse
   
  docker push 192.168.1.88:5000/busybox:latest
  # Upload the image to a private warehouse, back to keep private warehouse address and viceversa
   
  test:
  On the other array testing machine:
  docker run -it 192.168.1.88:5000/busybox:latest
  # Same as the original, as long as the back to keep the private address and the address specified mirror and tag
   
  All mirrored:
  curl http:192.168.1.88:5000/v2/_catalog
  # Ip and write in front of the warehouse behind the private port fixed format
  Show all tags mirrors
  curl http://192.168.1.88:5000/v2/myos/tags/list
  #myos here is a mirror of name

Guess you like

Origin www.cnblogs.com/wengzhenqi/p/10928987.html