Skip to content

tune2fs not found in dind container starting 1.9.1 #8

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
dubglan opened this issue Mar 25, 2016 · 4 comments
Closed

tune2fs not found in dind container starting 1.9.1 #8

dubglan opened this issue Mar 25, 2016 · 4 comments

Comments

@dubglan
Copy link

dubglan commented Mar 25, 2016

Looks like docker:1.9.1-dind and higher can not use devicemapper because tune2fs is not found.

docker run --privileged=true --rm -ti docker:1.9.1-dind -s devicemapper
Unable to find image 'docker:1.9.1-dind' locally
1.9.1-dind: Pulling from library/docker
4d06f2521e4f: Already exists
99e9f5d463c9: Already exists
a3ed95caeb02: Pull complete
9798e0e4a42a: Pull complete
0e452ef5783c: Pull complete
3a53fe711605: Pull complete
2bf575fb4306: Pull complete
3d883526b97b: Pull complete
Digest: sha256:9d7abad1778df8c3cdfdbf581b922003abeaf74f8da44d115fd8f6dfcb51b2a1
Status: Downloaded newer image for docker:1.9.1-dind
WARN[0000] /!\ DON'T BIND ON ANY IP ADDRESS WITHOUT setting -tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING /!\
WARN[0000] Udev sync is not supported. This will lead to unexpected behavior, data loss and errors. For more information, see https://docs.docker.com/reference/commandline/daemon/#daemon-storage-driver-option
INFO[0000] API listen on /var/run/docker.sock
INFO[0000] API listen on [::]:2375
WARN[0000] Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section.
WARN[0000] XFS is not supported in your system. Either the kernel doesnt support it or mkfs.xfs is not in your PATH. Defaulting to ext4 filesystem
FATA[0024] Error starting daemon: error initializing graphdriver: exec: "tune2fs": executable file not found in $PATH
@dubglan
Copy link
Author

dubglan commented Mar 25, 2016

@tianon Looks like you are the maintainer of the repo, could you please take a look.

@tianon
Copy link
Member

tianon commented Mar 30, 2016

Arg, good catch! I think upstream actually prefers XFS now, but we probably ought to include both tools since it's configurable.

@tianon
Copy link
Member

tianon commented Mar 31, 2016

Heh:

ERRO[0001] devmapper: Udev sync is not supported. This will lead to data loss and unexpected behavior. Install a dynamic binary to use devicemapper or select a different storage driver. For more information, see https://docs.docker.com/engine/reference/commandline/daemon/#daemon-storage-driver-option 
FATA[0001] Error starting daemon: error initializing graphdriver: driver not supported 

@tianon
Copy link
Member

tianon commented Mar 31, 2016

With both --storage-driver devicemapper AND --storage-opt dm.override_udev_sync_check=true, I now have success:

INFO[0004] Docker daemon                                 commit=388f544 graphdriver=devicemapper version=1.11.0-rc2

Will be sending a PR sometime today. 👍

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

2 participants