Error while install Tyk with Docker

Command and error message:

$ docker-compose up -d --force-recreate
Removing tykquickstart_tyk_dashboard_1
Removing tykquickstart_tyk_gateway_1
Removing tykquickstart_tyk_pump_1
Recreating d71643277f5d_tykquickstart_tyk_pump_1
Recreating d3370c515147_tykquickstart_tyk_gateway_1
Recreating d462d8e76619_tykquickstart_tyk_dashboard_1
Recreating tykquickstart_tyk_redis_1
Recreating tykquickstart_tyk_mongo_1

ERROR: for tyk_dashboard  Cannot start service tyk_dashboard: oci runtime error: rootfs_linux.go:53: mounting "/mnt/sda1/var/lib/docker/aufs/mnt/6528d2819aa92f795747eec9ff91b2a675adca657acef6eaec6eb98fe51f9157/opt/tyk-dashboard/tyk_analytics.conf" to rootfs "/mnt/sda1/var/lib/docker/aufs/mnt/6528d2819aa92f795747eec9ff91b2a675adca657acef6eaec6eb98fe51f9157" caused "not a directory"

ERROR: for tyk_gateway  Cannot start service tyk_gateway: oci runtime error: rootfs_linux.go:53: mounting "/mnt/sda1/var/lib/docker/aufs/mnt/006a5471aafe5628c317e2ffaca9cbccff7166875d834e0318e368c6b50176d7/opt/tyk-gateway/tyk.conf" to rootfs "/mnt/sda1/var/lib/docker/aufs/mnt/006a5471aafe5628c317e2ffaca9cbccff7166875d834e0318e368c6b50176d7" caused "not a directory"

ERROR: for tyk_pump  Cannot start service tyk_pump: oci runtime error: rootfs_linux.go:53: mounting "/mnt/sda1/var/lib/docker/aufs/mnt/fbcddc2ec13cd4c98cec5311b2dc4bf691ea047c73e42aa2c2315ff9987c8e7b/opt/tyk-pump/pump.conf" to rootfs "/mnt/sda1/var/lib/docker/aufs/mnt/fbcddc2ec13cd4c98cec5311b2dc4bf691ea047c73e42aa2c2315ff9987c8e7b" caused "not a directory"
ERROR: Encountered errors while bringing up the project.

Docker version: 1.12.0
docker-compose version: 1.8.0
Tyk version: latest.

Hi, what version of docker-compose are you using?

Sorry for this. I was update it in my post: docker-compose version: 1.8.0.
It was bundled with my docker toolbox 1.12.0

Any suggestion? Should I use lower docker and docker-compose version?

It looks like the mounts are failing, maybe docker changed their CLI options so the file mounts are not working.

It could also be the way you are running docker, looks like other people have this problem too:

AFAIK this was last tested with docker 1.10 and 1.11, can’t remember which compose.

1 Like

Thank you :smiley: I’ve tried use docker-compose in cmd. Above errors still occur :frowning:

Fixed. A docker error in windows. It can only map data volume to containers if my folder is a subfolder of $USER.

1 Like