我Docker Toolbox v. 1.13.1a
在Windows 7 Pro Service pack 1 x64
操作系统上运行。和Virtual Box Version 5.1.14 r112924
official postgres image
当我尝试从禁用卷的 Docker Hub运行任何 docker 映像时,它工作正常!
但是当我enable the volumes
失败时。
我尝试了所有官方文档
虚拟机根据需要具有共享文件夹,并且还full access
必须
共享文件夹屏幕截图
在我的 postgresql 示例中,它会因以下原因而崩溃log
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... LOG: could not link file "pg_xlog/xlogtemp.27" to "pg_xlog/000000010000000000000001": Operation not permitted
FATAL: could not open file "pg_xlog/000000010000000000000001": No such file or directory
child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/postgresql/data"
我知道它的问题folder permissions
。但是有点卡住了!提前致谢_