Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Docker build private warehouse     - How to add and delete bookmarks in Ubuntu (Linux)

- How to find out a Unix system library files are 32-bit or 64-bit (Linux)

- Linux system commands to view hardware information (Linux)

- JavaScript Advanced Programming notes event capture and event bubbling (Programming)

- Questions about Linux compiler u-boot (Programming)

- Build Golang development environment configuration on Ubuntu 14.04 (Linux)

- Java multi-threaded in a three way (inheritance, implementation, anonymous inner classes) (Programming)

- The headers for the current running kernel were not found when VirtualBox installation enhancements (Linux)

- Linux system security knowledge (Linux)

- Use Docker containers (Linux)

- findmnt- Looking mounted file system (Linux)

- Linux Fundamentals of the text, data flow processing orders (Linux)

- ActionContext and ServletActionContext Summary (Programming)

- How to install Linux Kernel 4.0 On CentOS 7 system (Linux)

- Oracle lag () and lpad () function (Database)

- How to properly set up a Linux swap partition (Linux)

- ORA-12545: Connection failed because the target host or object does not exist (Database)

- Oracle Data File Management (Database)

- Struts2 dynamic call DMI and error Solution (Programming)

- Java Database Programming JDBC configuration (Programming)

 
         
  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:      
 
- CentOS 6.5 makes the LAN http source (Linux)
- Default permissions Linux file and directory permissions and hide - umask, chattr, lsattr, SUID, SGID, SBIT, file (Linux)
- Android and OpenCV2.4.4 build an image processing framework (2013 edition) (Linux)
- Based AutoYaST automated installation of SUSE practice (Linux)
- Android shutdown (reboot) process (Programming)
- Linux iptables: basic principles and rules (Linux)
- Ubuntu will be written in a command file, executable file, source command (Linux)
- Configuring ftp server and nfs server under Linux (Server)
- How to run Kali Linux 2.0 in Docker container (Linux)
- Ubuntu How to mount iso file (Linux)
- FreeBSD install Gnome 3 Desktop (Linux)
- Kafka + Log4j log implement centralized management (Server)
- OpenSIPS offline messaging feature set (Server)
- Mac OS X command line to submit the local project to Git (Server)
- Multipath configuration under Linux (Linux)
- Sorting Algorithm (1) Quick Sort C ++ implementation (Programming)
- Teach you how to protect the security of Linux desktop (Linux)
- Java how to achieve bubble sort the problem Arraylist (Programming)
- Shell Scripting Basics (Linux)
- Set multiple IP addresses for a single network card on Ubuntu 15.10 (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.