Skip to content

MySQL container does not start #60

Open
@11mb

Description

@11mb

When doing docker-compose up on osx I get an error message:

db_1 | chown: changing ownership of '/var/lib/mysql/': Operation not permitted
maxpou_db_1 exited with code 1

When I do a 'docker ps' I get only:

elk
nginx
php

It works when I add a mysql_data volume:

services:
db:
volumes:
- mysql_data:/var/lib/mysql

volumes:
mysql_data

docker info:
Containers: 19
Running: 1
Paused: 0
Stopped: 18
Images: 288
Server Version: 1.13.1
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 359
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.47-boot2docker
Operating System: Boot2Docker 1.13.1 (TCL 7.2); HEAD : b7f6033 - Wed Feb 8 20:31:48 UTC 2017
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.955 GiB
Name: dinghy
ID: UXNT:LKPY:CI3D:KNOC:SPY2:QFC7:MKSF:OPJB:7ANJ:M6PM:N3XW:FSGW
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 24
Goroutines: 32
System Time: 2017-05-04T07:22:34.976096987Z
EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
provider=virtualbox
Insecure Registries:
127.0.0.0/8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions