harbor edition :
v1.10.2

Problems encountered :
use docker-compose down Command off harbor, Then use the ./install.sh --with-chartmuseum
Command to re install the tape chart Warehouse harbor, And then it turns out it won't start , Report the following error :
[Step 5]: starting Harbor ... Creating network "harbor_harbor" with the
default driver Creating network"harbor_harbor-chartmuseum" with the default
driver Creating harbor-log... done Creating redis ... Creating registryctl ...
Creating harbor-portal... error Creating chartmuseum ... Creating harbor-db ...
Creating registryctl... error ERROR: for harbor-portal Cannot start service
portal: failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect:
connection refused ERROR:for chartmuseum Cannot start service chartmuseum:
failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect:
connection refused Creating redis... error ERROR: for registryctl Cannot start
service registryctl: failed to initialize logging driver: dial tcp
127.0.0.1:1514: connect: connection refused Creating registry... error ERROR:
for registry Cannot start service registry: failed to initialize logging
driver: dial tcp 127.0.0.1:1514: connect: connection refused ERROR:for redis
Cannot startservice redis: failed to initialize logging driver: dial tcp
127.0.0.1:1514: connect: connection refused ERROR:for portal Cannot start
service portal: failed to initialize logging driver: dial tcp 127.0.0.1:1514:
connect: connection refused ERROR:for chartmuseum Cannot start service
chartmuseum: failed to initialize logging driver: dial tcp 127.0.0.1:1514:
connect: connection refused ERROR:for registryctl Cannot start service
registryctl: failed to initialize logging driver: dial tcp 127.0.0.1:1514:
connect: connection refused ERROR:for postgresql Cannot start service
postgresql: failed to initialize logging driver: dial tcp 127.0.0.1:1514:
connect: connection refused ERROR:for registry Cannot start service registry:
failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect:
connection refused ERROR:for redis Cannot start service redis: failed to
initialize logging driver: dial tcp 127.0.0.1:1514: connect: connection refused
ERROR: Encountered errorswhile bringing up the project.
use docker-compose ps View container , find harbor-log The container has been rebooting .
[root@harbor harbor]# docker-compose ps Name Command State Ports
------------------------------------------------------------------- chartmuseum
./docker-entrypoint.sh Exit 128 harbor-db /docker-entrypoint.sh Exit 128
harbor-log /bin/sh -c /usr/local/bin/... Restarting harbor-portal nginx -g
daemon off; Exit 128 redis redis-server /etc/redis.conf Exit 128 registry
/home/harbor/entrypoint.sh Exit 128 registryctl /home/harbor/start.sh Exit 128
use docker logs -f harbor-log see harbor-log journal :
[root@harbor harbor]# docker logs -f harbor-log sudo: Account or password is
expired, reset your password and try again sudo: a terminal is required toread
the password; either use the -S option to read from standard input or configure
an askpass helper Changing passwordfor root. sudo: unable to change expired
password: Authentication token manipulation error sudo: Account or password is
expired, reset your password and try again sudo: a terminal is required toread
the password; either use the -S option to read from standard input or configure
an askpass helper sudo: unable to change expired password: Authentication token
manipulation error Changing passwordfor root. sudo: Account or password is
expired, reset your password and try again Changing passwordfor root. sudo: a
terminal is required toread the password; either use the -S option to read from
standard input or configure an askpass helper sudo: unable to change expired
password: Authentication token manipulation error sudo: Account or password is
expired, reset your password and try again Changing passwordfor root. sudo: a
terminal is required toread the password; either use the -S option to read from
standard input or configure an askpass helper sudo: unable to change expired
password: Authentication token manipulation error sudo: Account or password is
expired, reset your password and try again sudo: a terminal is required toread
the password; either use the -S option to read from standard input or configure
an askpass helper Changing passwordfor root. sudo: unable to change expired
password: Authentication token manipulation error sudo: Account or password is
expired, reset your password and try again sudo: a terminal is required toread
the password; either use the -S option to read from standard input or configure
an askpass helper Changing passwordfor root. sudo: unable to change expired
password: Authentication token manipulation error sudo: Account or password is
expired, reset your password and try again sudo: a terminal is required toread
the password; either use the -S option to read from standard input or configure
an askpass helper sudo: unable to change expired password: Authentication token
manipulation error Changing passwordfor root. sudo: Account or password is
expired, reset your password and try again Changing passwordfor root. sudo: a
terminal is required toread the password; either use the -S option to read from
standard input or configure an askpass helper sudo: unable to change expired
password: Authentication token manipulation error sudo: Account or password is
expired, reset your password and try again sudo: a terminal is required toread
the password; either use the -S option to read from standard input or configure
an askpass helper sudo: unable to change expired password: Authentication token
manipulation error Changing passwordfor root. sudo: Account or password is
expired, reset your password and try again Changing passwordfor root. sudo: a
terminal is required toread the password; either use the -S option to read from
standard input or configure an askpass helper sudo: unable to change expired
password: Authentication token manipulation error sudo: Account or password is
expired, reset your password and try again sudo: a terminal is required toread
the password; either use the -S option to read from standard input or configure
an askpass helper Changing passwordfor root. sudo: unable to change expired
password: Authentication token manipulation error
Solution
# export harbor-log container mkdir -p /tmp/harbor-log cd /tmp/harbor-log docker export
harbor-log -o harbor-log.tar# decompression tar package tar xvfp harbor-log.tar # modify shadow The value of the file sed
-i's/:90:/:99999:/g' /tmp/harbor-log/etc/shadow # The revised shadow File mount to harbor-log In container
mkdir -p /opt/harbor-log-etc/ cp /tmp/harbor-log/etc/shadow
/opt/harbor-log-etc/shadow# modify docker-composr.yml file ,harbor-log Containerized volumes to configure , Add the following configuration
- type: bind source: /opt/harbor-log-etc/shadow target: /etc/shadow# restart harbor that will do
docker-compose down docker-compose up -d

Technology
Daily Recommendation