参考链接
https://cklx.gq/docs/vps/vps-1armjboubdpi8
https://github.com/chatopera/cosin#%E5%BC%80%E5%8F%91%E6%96%87%E6%A1%A3

yum install -y epel-release
报错如下:

[root@localhost ~]# yum install -y epel-release
Loaded plugins: fastestmirror
base                                                                                                                                                                  | 3.6 kB  00:00:00
 
 
 One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:
 
     1. Contact the upstream for the repository and get them to fix the problem.
 
     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).
 
     3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:
 
            yum-config-manager --disable <repoid>
 
     4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:
 
            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
 
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

yum安装时出现:Cannot retrieve metalink for repository: epel. Please verify its path and try again
解决方案 https://blog.csdn.net/chhnang2016/article/details/94127505
重新执行 安装成功

[root@localhost yum.repos.d]# yum install -y epel-release
Loaded plugins: fastestmirror
base                                                                                                                                                                  | 3.6 kB  00:00:00
epel                                                                                                                                                                  | 4.7 kB  00:00:00
extras                                                                                                                                                                | 2.9 kB  00:00:00
updates                                                                                                                                                               | 2.9 kB  00:00:00
(1/3): epel/x86_64/group_gz                                                                                                                                           |  95 kB  00:00:15
(2/3): epel/x86_64/updateinfo                                                                                                                                         | 1.0 MB  00:00:15
(3/3): epel/x86_64/primary_db                                                                                                                                         | 6.8 MB  00:00:03
Loading mirror speeds from cached hostfile
 * base: centos.uhost.hk
 * extras: centos.uhost.hk
 * updates: centos.uhost.hk
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be updated
---> Package epel-release.noarch 0:7-12 will be an update
--> Finished Dependency Resolution
 
Dependencies Resolved
 
=============================================================================================================================================================================================
 Package                                            Arch                                         Version                                    Repository                                  Size
=============================================================================================================================================================================================
Updating:
 epel-release                                       noarch                                       7-12                                       epel                                        15 k
 
Transaction Summary
=============================================================================================================================================================================================
Upgrade  1 Package
 
Total download size: 15 k
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/epel/packages/epel-release-7-12.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY                        ]  0.0 B/s |    0 B  --:--:-- ETA
Public key for epel-release-7-12.noarch.rpm is not installed
epel-release-7-12.noarch.rpm                                                                                                                                          |  15 kB  00:00:15
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-11.noarch (@extras)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : epel-release-7-12.noarch                                                                                                                                                  1/2
warning: /etc/yum.repos.d/epel.repo created as /etc/yum.repos.d/epel.repo.rpmnew
  Cleanup    : epel-release-7-11.noarch                                                                                                                                                  2/2
  Verifying  : epel-release-7-12.noarch                                                                                                                                                  1/2
  Verifying  : epel-release-7-11.noarch                                                                                                                                                  2/2
 
Updated:
  epel-release.noarch 0:7-12
 
Complete!
yum install docker-io     # 安装docker

期间提示is this ok?正确的话,输入y即可。

[root@localhost yum.repos.d]# chkconfig docker on  # 加入开机启动
Note: Forwarding request to 'systemctl enable docker.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.

启动docker
https://blog.csdn.net/lihuajian1024/article/details/80734617

执行curl命令

curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

curl: (35) Peer reports incompatible or unsupported protocol version.
解决方案:
https://www.cnblogs.com/leaf-cq/p/11056792.html

chmod +x /usr/local/bin/docker-compose
./scripts/start.sh

出现错误

[root@localhost cosin]# ./scripts/start.sh
Pulling activemq       ... done
Pulling mysql          ... done
Pulling redis          ... done
Pulling elasticsearch  ... done
Pulling contact-center ... done
Pulling nginx          ... done
Creating network "cosin_default" with the default driver
Creating cosin_elasticsearch_1_5e34580ca1aa ... error
Creating cosin_redis_1_580e6006c6cf         ...
Creating cosin_mysql_1_28abce6725a7         ...
Creating cosin_activemq_1_2f26598226bd      ...
 
ERROR: for cosin_elasticsearch_1_5e34580ca1aa  Cannot create container for service elasticsearch: error creating overlay mount to /var/lib/docker/overlay2/36afa79c14eabb7d0e1297d4cf7ca24a3bCreating cosin_activemq_1_2f26598226bd      ... error
Creating cosin_redis_1_580e6006c6cf         ... error
ERROR: for cosin_activemq_1_2f26598226bd  Cannot create container for service activemq: error creating overlay mount to /var/lib/docker/overlay2/a7b34a082aa0ecec770af118cafc43070af0f1e0ae9c48410b8917287e43cee3-init/merged: invalid argument
 
Creating cosin_mysql_1_28abce6725a7         ... error
be3c689e823c84-init/merged: invalid argument
 
ERROR: for cosin_mysql_1_28abce6725a7  Cannot create container for service mysql: error creating overlay mount to /var/lib/docker/overlay2/2c1b7327609755545bff4f3d23ec1f2ce097d75c17a2b579e73a9f949137d390-init/merged: invalid argument
 
ERROR: for elasticsearch  Cannot create container for service elasticsearch: error creating overlay mount to /var/lib/docker/overlay2/36afa79c14eabb7d0e1297d4cf7ca24a3b1820e653cc0935d526d3bbcec8164e-init/merged: invalid argument
 
ERROR: for activemq  Cannot create container for service activemq: error creating overlay mount to /var/lib/docker/overlay2/a7b34a082aa0ecec770af118cafc43070af0f1e0ae9c48410b8917287e43cee3-init/merged: invalid argument
 
ERROR: for redis  Cannot create container for service redis: error creating overlay mount to /var/lib/docker/overlay2/dbc2449f15dfaa503fdb70b4325af686711a9a29ee76473f05be3c689e823c84-init/merged: invalid argument
 
ERROR: for mysql  Cannot create container for service mysql: error creating overlay mount to /var/lib/docker/overlay2/2c1b7327609755545bff4f3d23ec1f2ce097d75c17a2b579e73a9f949137d390-init/merged: invalid argument
ERROR: Encountered errors while bringing up the project.

解决方案
https://www.cnblogs.com/lfxiao/p/9814903.html

发表评论

邮箱地址不会被公开。 必填项已用*标注