我installed Oracle Database和官方dockerfile在一起。该数据库可以工作,但是尚不清楚如何成为root用户(我需要安装perl来安装sample schemas)。我尝试过this:
server {
listen 80;
server_name domainA.com;
root /var/www/html/codebaseofalldomains/public;
location / {
# try to serve file directly, fallback to index.php
try_files $uri /index.php$is_args$args;
}
location ~ ^/index\.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
error_log /var/log/nginx/domainA_error.log;
access_log /var/log/nginx/domainA_access.log;
}
但得到:
sudo docker exec -u 0 -it oracle18se /bin/bash
这是什么意思?
有默认的root密码吗?
答案 0 :(得分:2)
答案 1 :(得分:0)
更容易记住:
docker exec -u 0 -it 19c bash