Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
windows10卷权限上的Docker“;存储引擎出现故障。”;_Docker_Windows 10_Docker Compose_Hyper V - Fatal编程技术网

windows10卷权限上的Docker“;存储引擎出现故障。”;

windows10卷权限上的Docker“;存储引擎出现故障。”;,docker,windows-10,docker-compose,hyper-v,Docker,Windows 10,Docker Compose,Hyper V,今天早上我尝试在我的笔记本电脑(windows10)上安装Docker, (我的Docker使用hyper-v) 我尝试使用这个基本的docker组合 version: '2' services: mariadb: image: mariadb container_name: mariadb ports: - "3306:3306" volumes: - ./mysql1/:/var/lib/mysql

今天早上我尝试在我的笔记本电脑(windows10)上安装Docker, (我的Docker使用hyper-v)

我尝试使用这个基本的docker组合

version: '2'

services:
    mariadb:
      image: mariadb
      container_name: mariadb
      ports:
        - "3306:3306"
      volumes:
        - ./mysql1/:/var/lib/mysql
      environment:
        MYSQL_USER : root
        MYSQL_ROOT_PASSWORD: root
我在运行时遇到一些错误:

docker-compose up
Creating mariadb
Attaching to mariadb
mariadb    | 2017-04-04  8:29:00 140557637724096 [Note] mysqld (mysqld 10.1.22-MariaDB-1~jessie) starting as process 1 ...
mariadb    | 2017-04-04  8:29:00 140557637724096 [Note] InnoDB: Using mutexes to ref count buffer pool pages
mariadb    | 2017-04-04  8:29:00 140557637724096 [Note] InnoDB: The InnoDB memory heap is disabled
mariadb    | 2017-04-04  8:29:00 140557637724096 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb    | 2017-04-04  8:29:00 140557637724096 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
mariadb    | 2017-04-04  8:29:00 140557637724096 [Note] InnoDB: Compressed tables use zlib 1.2.8
mariadb    | 2017-04-04  8:29:00 140557637724096 [Note] InnoDB: Using Linux native AIO
mariadb    | 2017-04-04  8:29:00 140557637724096 [Note] InnoDB: Using SSE crc32 instructions
mariadb    | 2017-04-04  8:29:00 140557637724096 [Note] InnoDB: Initializing buffer pool, size = 256.0M
mariadb    | 2017-04-04  8:29:00 140557637724096 [Note] InnoDB: Completed initialization of buffer pool
mariadb    | 2017-04-04  8:29:00 140557637724096 [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 0 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
mariadb    | 2017-04-04  8:29:00 140557637724096 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
mariadb    | 2017-04-04  8:29:00 140557637724096 [ERROR] Plugin 'InnoDB' init function returned error.
mariadb    | 2017-04-04  8:29:00 140557637724096 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
mariadb    | 2017-04-04  8:29:00 140557637724096 [Note] Plugin 'FEEDBACK' is disabled.
mariadb    | 2017-04-04  8:29:00 140557637724096 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
mariadb    | 2017-04-04  8:29:00 140557637724096 [ERROR] Unknown/unsupported storage engine: InnoDB
mariadb    | 2017-04-04  8:29:00 140557637724096 [ERROR] Aborting
mariadb    |
mariadb exited with code 1
运行我的目录后,创建了./mysql1/和子文件:

C:\USERS\--------\DOCUMENTS\DOCKER\MARIADB\MYSQL1
|   aria_log.00000001
|   aria_log_control
|   ibdata1
|
\---mysql
是的,我知道这是关于我的卷(关于权限或访问权限或…)
我不知道如何解决这个问题。

我遇到了同样的问题,唯一能解决这个问题的方法是删除MARIADB\MYSQL1文件夹。是的,我丢失了所有开发站点的所有数据库记录,但对我来说,这些都是测试信息,所以没有丢失真实数据

删除MYSQL1文件夹后,我运行:

docker-compose build --no-cache MariaDB
然后我启动了容器:

docker-compose up -d mariadb

错误最终消失了,我可以再次使用我的MariaDB容器。希望这对将来的人有帮助

我也有同样的问题。这里没有人能帮忙吗?还是你同时找到了解决方案,@Bob?现在我使用了一个肮脏的解决方案:一个ubuntu虚拟机(在virtualbox上)(带有nat网络选项)和里面的docker。。。在我可以将ubuntu虚拟机的IP与数据库gui一起使用或访问我的“网页”之后