Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Docker build private warehouse     - Thinking in Java study notes - Access modifiers (Programming)

- Java implementation chain store binary search tree (recursive method) (Programming)

- Linux command ls (Linux)

- KVM virtualization of nested virtualization (Linux)

- Linux md5sum verify file integrity (Linux)

- How to run Kali Linux 2.0 in Docker container (Linux)

- In Spring AOP example explanation (Programming)

- grep command Series: How to Use the grep command in Linux / UNIX (Linux)

- Varnish configuration language VCL and its built-in variables (Server)

- GitLab Installation Guide -Ubuntu 14.04 LTS (Server)

- Memory leak analysis using Android studio (Programming)

- Use Mop monitor stock prices at the Linux command line (Linux)

- Spring multi data source configuration (Programming)

- 12 novice Linux command must learn (Linux)

- Ubuntu Server 14.04 installation Web server (Linux + Apache + MySQL + PHP) (Server)

- Linux Getting Started tutorial: Experience KVM Virtual Machine chapter (Linux)

- How to become a better Node.js developers in 2016 (Programming)

- Ubuntu method for single-card dual-IP (Linux)

- 8 Docker knowledge you may not know (Server)

- How to Install terminator 0.98 on Ubuntu and Linux Mint (Linux)

 
         
  Docker build private warehouse
     
  Add Date : 2018-11-21      
         
         
         
  1.Docker pull registry # official website pull a repository mirror

2.docker run -d -p 5000: 5000 registry # port casually own definition, usually with 5000.

Mirroring By default, the warehouse will be stored in the container / tmp / registry directory, so if the container is removed, stored in a container will be lost, so under normal circumstances we will specify a local directory is mounted to the container under inside / tmp / registry, as follows:

docker run -d -p 5000: 5000 -v / opt / data / registry: / tmp / registry registry

In the browser and enter http: // IP: 5000 will return the correct information

3.docker pull Ubuntu: 12.04 to download a test image file

NOTE: You can modify this mirrors for their business needs to re-commit or write Dockfile

4. Rename

 docker tag ubuntu: 12.04 192.168.1.61:5000/myapp

This step is very important and must contain ip: port is 192.168.1.61:5000

5. Upload

 docker push 192.168.1.61:5000/myapp

6. casually looking for a testing machine to pull this image

docekr pull 192.168.1.61:5000/myapp

important hint:

Warehouse 1.3.X versions later default https upload, modify configuration files.

vim / etc / default / docker add red mark section, restart docker
     
         
         
         
  More:      
 
- Linux three ways to set environment variables (Linux)
- 256 with rich colors decorate your terminal (Linux)
- Gitblit adopted Ticket collaborative development model (Linux)
- Boost notes --Asio - (1) a simple small example of synchronous communication (Programming)
- Installation JDK1.7 under Ubuntu14.04 64-bit (Linux)
- sed and awk in shell usage and some examples (Linux)
- Mounting kit under Fedora Linux (Linux)
- How to install Visual Studio Code on Ubuntu (Linux)
- A brief introduction to some important Docker commands (Server)
- Java coding conventions (Programming)
- Change all child files and subdirectories in the owner permissions Ubuntu (Linux)
- Remote installation of Net-SNMP whole process (Linux)
- Upload the project to GitHub, synchronous remote repository Github (Linux)
- Large computer network security policy Experience (Linux)
- Apache POI Excel Document Processing (Linux)
- Getting Started with Linux system to learn: How do I know which processes are running on the CPU core (Linux)
- Linux (Ubuntu) How iptables port mapping (Server)
- Linux print file and send mail (Linux)
- C # get the current screenshot (Programming)
- Django Signals from practice to source code analysis (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.