Skip to content
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

Add error when running overlay over btrfs. #9834

Merged
merged 1 commit into from
Jan 6, 2015

Conversation

jessfraz
Copy link
Contributor

Fixes #9820.

@jessfraz
Copy link
Contributor Author

Ah shit sorry the broken commit pushed, at the airport will update soon

@thaJeztah
Copy link
Member

Thanks for picking this up so quickly!

@jessfraz
Copy link
Contributor Author

np, it was an easy update, ok pushed :)

@jessfraz
Copy link
Contributor Author

i dont know who has the env to test this other than @LK4D4

@jessfraz
Copy link
Contributor Author

@bobrik if you want to test too that would be cool, no worries if not ;)

@bobrik
Copy link
Contributor

bobrik commented Dec 30, 2014

@jfrazelle I can check if I get an error if you tell me where to get the build.

@jessfraz
Copy link
Contributor Author

I will make some binaries and push to s3

@bobrik
Copy link
Contributor

bobrik commented Dec 30, 2014

I've got a little paranoid and decided to compile binary myself. Guess what?

~ λ curl https://docs.docker.com/
curl: (60) SSL certificate problem: Invalid certificate chain
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

@jessfraz
Copy link
Contributor Author

whoa thats weird... maybe a SNI problem? and I swear I wouldnt give you a virus lol, unless it was an adobe flash plugin

@bobrik
Copy link
Contributor

bobrik commented Dec 30, 2014

Okay, I compiled docker myself, it fails to start as expected:

ERRO[0000] 'overlay' is not supported over btrfs filesystems. Please use over ext4.
FATA[0000] backing file system is unsupported for this graph driver

Still works fine on ext4. LGTM then.

Forget about SSL issue, looks like an issue on my side.

@jessfraz
Copy link
Contributor Author

yayyy thanks!

return nil, err
}

if graphdriver.FsMagic(buf.Type) == graphdriver.FsMagicBtrfs {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is little confusing :) Message is about using over ext4, but you checking for btrfs. Maybe I am using reiser.
Should we deny to run overlay over any fs which is not ext4?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SvenDowideit mentioned below request:
can we also add the underlying FS to docker info? (for all graph drivers that have them..)

it also need consider.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xiaods I think that can be a separate pr

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LK4D4 I will update

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated!

@jessfraz
Copy link
Contributor Author

jessfraz commented Jan 5, 2015

@LK4D4
Copy link
Contributor

LK4D4 commented Jan 5, 2015

LGTM

@icecrime
Copy link
Contributor

icecrime commented Jan 6, 2015

Review session with @tiborvass @crosbymichael @unclejack

@LK4D4 We're actually disagreeing with your previous comment: we'd rather have a blacklist of unsupported fs (btrfs + aufs for the moment) than a whitelist of supported fs (especially as ext4 shouldn't be the only one). What about things such as xfs?

@crosbymichael
Copy link
Contributor

Overlayfs is supported with XFS

@jessfraz
Copy link
Contributor Author

jessfraz commented Jan 6, 2015

ah ok cool so should I just blacklist Aufs and btrfs what about reiser

@jessfraz
Copy link
Contributor Author

jessfraz commented Jan 6, 2015

ok I updated, I put two seperate errors, but I would combine into one if, but I was just trying to avoid someone opening an issue about how we don't tell them what they are running and the error is "vague"

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
@crosbymichael
Copy link
Contributor

LGTM

crosbymichael added a commit that referenced this pull request Jan 6, 2015
Add error when running overlay over btrfs.
@crosbymichael crosbymichael merged commit 9d1caf4 into moby:master Jan 6, 2015
@jessfraz jessfraz deleted the 9820-overlay-btrfs branch January 6, 2015 22:49
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

Successfully merging this pull request may close these issues.

/dev/shm troubles in docker 1.4.1
7 participants