Skip to content

chown: changing ownership of '/var/lib/mysql/ibtmp1': No such file or directory #233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bdestrempes opened this issue Nov 8, 2016 · 4 comments

Comments

@bdestrempes
Copy link

Hi,

Trying to start a container gives me this message:

chown: changing ownership of '/var/lib/mysql/ibtmp1': No such file or directory

The container was created with docker-compose:

version: '2'

services:
   db:
     image: mysql:5.7
     volumes:
       - "./.data/db:/var/lib/mysql"
     restart: always
     ports:
      - "8081:3306"
     environment:
       MYSQL_ROOT_PASSWORD: wordpress
       MYSQL_DATABASE: wordpress
       MYSQL_USER: wordpress
       MYSQL_PASSWORD: wordpress

   wordpress:
     depends_on:
       - db
     image: wordpress:latest
     volumes:
      - ./:/var/www/html
     links:
       - db
     ports:
       - "8000:80"
     restart: always
     environment:
       WORDPRESS_DB_HOST: db:3306
       WORDPRESS_DB_PASSWORD: wordpress

   phpmyadmin:
    image: phpmyadmin/phpmyadmin:latest
    ports:
      - "8090:80"
    links:
      - db:db

This worked perfectly for the first instance but trying to create a new instance in another directory gives the above error message.

I have searched around but couldn't find anything related to this error message. I am running Docker for Windows 1.12.3. Still new to this so apologies if this is something simple that I missed.

@davidt22
Copy link

I have the same problem with it using docker-toolbox for mac Os El capitan.

@yosifkit
Copy link
Member

I thought it might be related to #219, but I was unable to reproduce the error.

@tianon
Copy link
Member

tianon commented Dec 10, 2016

@bdestrempes did you mange to figure this out? If so, please close this issue! Thanks! 👍

@bdestrempes
Copy link
Author

Yes, apologies for the delay. Resolved itself after a few reinstalls of docker but I haven't figured out what caused it. Will close for now and let you know of it happens again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants