当前位置:网站首页>Docker uses mysql:5.6 and owncloud image to build a personal network disk, install and build a private warehouse harbor
Docker uses mysql:5.6 and owncloud image to build a personal network disk, install and build a private warehouse harbor
2022-07-26 22:36:00 【Quantum wave cat】
1、 Use mysql:5.6 and owncloud Mirror image , Build a personal network disk .
2、 Install and set up a private warehouse Harbor
3、 To write Dockerfile Make Web Application system nginx Mirror image , Create a mirror image nginx:v1.1, And push it to a private warehouse . The specific requirements are as follows :
(1) be based on centos base image ;
(2) Specify author information ;
(3) install nginx service , Will provide dest Catalog ( Provide default home page index.html) Transfer to the image , And will dest Copy the front-end files in the directory to nginx Working directory of ;
(4) expose 80 port ;
(5) Set up service self start .
(6) Verify image .
4、Dockerfile Quickly build your own LAMP Environmental Science , Create a mirror image lamp:v1.1, And push it to a private warehouse . The specific requirements are as follows :
(1) be based on centos:7 base image ;
(2) Specify author information ;
(3) install httpd、mysql\mysql-server、php、php-mysql、php-gd;
(4) expose 80 and 3306 port ;
(5) Set up service self start .
(6) Verify image .
One 、 Use mysql:5.6 and owncloud Mirror image , Build a personal network disk
Pull mysql:5.6 and owncloud Mirror image
[[email protected] ~]# docker pull mysql:5.6
[[email protected] ~]# docker pull ow ncloud
[[email protected] ~]# docker -itd --name bdm --env MYSQL_ROOT_PASSWORD=123456 mysql:5.6
[[email protected] ~]# docker run -itd --name web1 --link bdm:bdm -p 80:80 owncloud:latest

Log in to this computer's ip Address , Enter your username and password , Next choice mysql Interface , First line input root, Then enter the password , Input again docker Name , Input again docker name :3306
After completion, you will enter the following page :

Login success page :

Two 、 Install and set up a private warehouse Harbor
# install docker Layout tools docker-compose
[[email protected] harbor]# curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
# download Harbor Installation package
[[email protected] ~]# wget -c https://github.com/goharbor/harbor/releases/download/v2.4.1/harbor-offline-installer-v2.4.1.tgz
# Apply executable permissions to binaries :
[[email protected] harbor]# chmod +x /usr/local/bin/docker-compose
# Test for successful installation
[[email protected] harbor]# docker-compose version
docker-compose version 1.25.1, build a82fef07
docker-py version: 4.1.0
CPython version: 3.7.4
OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
# To configure Harbor service
[[email protected] ~]# tar xf harbor-offline-installer-v2.4.1.tgz -C /usr/local/
[[email protected] ~]# cd /usr/local/harbor/
[[email protected] harbor]# cp harbor.yml.tmpl harbor.yml
[[email protected] harbor]# vim harbor.yml

# Add local DNS analysis
[[email protected]st harbor]# vim /etc/hosts

# Run the installation script
[[email protected] harbor]# ./install.sh
# verification
[[email protected] harbor]# ss -nutlp | grep docker
[[email protected] harbor]# docker ps
[[email protected] harbor]# docker login -u admin -p Harbor12345 1

Enter the local IP Add... To the address :8000, user name admin password Harbor12345. The login success page is as follows :

Do a simple operation : Create user

New projects


3、 ... and 、 To write Dockerfile Make Web Application system nginx Mirror image , Create a mirror image nginx:v1.1, And push it to a private warehouse


Sign in Harbor

Push to warehouse

Four 、Dockerfile Quickly build your own LAMP Environmental Science , Create a mirror image lamp:v1.1, And push it to a private warehouse .
To write dockerfile:


Push to private warehouse :
边栏推荐
- 『Mysql』汇总Mysql索引失效的常见场景
- Alibaba three sides: how to solve the problems of MQ message loss, duplication and backlog?
- Fujian vies for vc/pe
- Arduino实验一:双色灯实验
- 2022-07-26:以下go语言代码输出什么?A:5;B:hello;C:编译错误;D:运行错误。 package main import ( “fmt“ )
- Development status of Dao
- Excel-vba quick start (X. prompt box, inputable pop-up box)
- Five years after graduation, I changed from information management to software testing engineer, and my monthly salary finally exceeded 12K
- Overview of banking industry
- y78.第四章 Prometheus大厂监控体系及实战 -- prometheus的服务发现机制(九)
猜你喜欢

DTS is equipped with a new self-developed kernel, which breaks through the key technology of the three center architecture of the two places Tencent cloud database

Qt中为工程添加资源文件、给按钮添加图片

Financial institution map

Botu PLC output channel mapping FC

Chapter 15 MySQL user management

【Io开发笔记】机智云智能浇花器实战(3)-自动生成代码移植

VCs compilation and simulation process

IDEA的那些环境配置及插件
![[waiting and wakeup of QT multithreaded threads]](/img/9b/fe16926dc126e93f155b0162cc329d.png)
[waiting and wakeup of QT multithreaded threads]

在灯塔工厂点亮5G,宁德时代抢先探路中国智造
随机推荐
After changing the password in MySQL under win10, the problem of sudden login failure is solved
A few pictures help you clarify "China's financial institution system"
Embedded SIG | 分布式软总线
Height collapse caused by floating
2022 latest Tibet Construction Safety Officer simulation question bank and answers
2019生物识别论坛成功落幕:这十大看点不容错过!
The PRI that Hillhouse joined, including Junlian, Huakong, Shengshi, Lvdong and other 100 institutions, was killed
《强化学习周刊》第55期:LB-SGD、MSP-DRL & 对抗鲁棒强化学习
IDEA的那些环境配置及插件
[tool] apifox
【Io开发笔记】机智云智能浇花器实战(3)-自动生成代码移植
基于C语言设计的增量型安全文件系统 SFS
Qt中为工程添加资源文件、给按钮添加图片
SQL二次注入详解
JMeter -- response Chinese garbled code processing
Understand China's financial system in one article
Summary of debugging stc8a8k64d4 MCU 485 communication
Five years after graduation, I changed from information management to software testing engineer, and my monthly salary finally exceeded 12K
NVIDIA SMI error: NVIDIA SMI has failed because it could't communicate with the NVIDIA driver complete record
: could not determine a constructor for the tag ! RootAdmin