Mac M1环境下用Podman启动Oracle XE容器遇认证失败问题
Oracle数据库容器启动认证失败问题
环境信息
- 操作系统:Mac M1
- 镜像:
container-registry.oracle.com/database/express:21.3.0-xe - Docker驱动:Podman(下方Shell命令中
docker为podman的别名)
之前尝试使用container-registry.oracle.com/database/enterprise:19.19.0.0镜像,但拉取时失败,错误信息如下:
$ docker pull container-registry.oracle.com/database/enterprise Trying to pull container-registry.oracle.com/database/enterprise:latest... Error: initializing source docker://container-registry.oracle.com/database/enterprise:latest: unable to retrieve auth token: invalid username/password: authentication required
随后切换到container-registry.oracle.com/database/express:21.3.0-xe镜像,但启动容器时持续遇到认证失败错误,即使设置了ORACLE_PWD环境变量也无法解决。执行启动命令的输出如下:
$ docker run --name oracle-cont -v $(PWD)/oracle-data:/opt/oracle/oradata \ container-registry.oracle.com/database/express:21.3.0-xe WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64) Password: su: Authentication failure
关键问题是:执行命令后根本没有机会手动输入密码,系统似乎自动填充了某个密码,进而导致认证失败。
内容的提问来源于stack exchange,提问作者IsaIkari
相关产品推荐
相关产品推荐

