Skip to content
This repository was archived by the owner on Jun 14, 2022. It is now read-only.
This repository was archived by the owner on Jun 14, 2022. It is now read-only.

Can't start when bind and NFS mouting for /var/lib/mysql container directory #16

@sadmin91

Description

@sadmin91

Hello,

I try to setup this container on a raspberry.
On Docker host, I have mount an NFS share to /mnt/swarmData/labemilie-db and I could write on it.
I try to start a container with this command line :
docker container create --name labemilie-db --hostname labemilie-db --network labemilie-network -v /mnt/swarmData/labemilie-db:/var/lib/mysql --env MYSQL_ROOT_PASSWORD=bestPassword hypriot/rpi-mysql:arm-5.5
But I got this error :

181118 17:18:47 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.,
181118 17:18:47 [Note] mysqld (mysqld 5.5.60-0+deb7u1) starting as process 1 ...,
181118 17:18:47 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.,
181118 17:18:47 [Note] Plugin 'FEDERATED' is disabled.,
�mysqld: Can't find file: './mysql/plugin.frm' (errno: 13),
181118 17:18:47 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.,
181118 17:18:47 InnoDB: The InnoDB memory heap is disabled,
181118 17:18:47 InnoDB: Mutexes and rw_locks use GCC atomic builtins,
181118 17:18:47 InnoDB: Compressed tables use zlib 1.2.7,
181118 17:18:47 InnoDB: Using Linux native AIO,
181118 17:18:47 InnoDB: Initializing buffer pool, size = 128.0M,
181118 17:18:47 InnoDB: Completed initialization of buffer pool,
181118 17:18:47  InnoDB: Operating system error number 13 in a file operation.,
InnoDB: The error means mysqld does not have the access rights to,
InnoDB: the directory.,
InnoDB: File name ./ibdata1,
InnoDB: File operation call: 'create'.,
InnoDB: Cannot continue operation.,

If I try to start the same container without the mounting of /var/lib/mysql, it's OK.
Could you help to solve this behaviour?

Thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions