Harbor 删除LDAP 历史登录用户

  1. 获取harbor-db的容器

$ docker ps | grep harbor-db

54a402c3b7ab goharbor/harbor-db:v2.2.0 "/docker-entrypoint.…" 3 months ago Up 3 months (healthy)

  1. 进入到容器

docker exec -it 54a402c3b7ab bash

  1. 对数据库进行操作

psql -U postgres

\c registry

select * from harbor_user;

delete from harbor_user where username like 'S%';

你可能感兴趣的:(docker,linux)