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

Docker error : unable to prepare context #7

Open
X-wenhao opened this issue Jun 1, 2018 · 3 comments
Open

Docker error : unable to prepare context #7

X-wenhao opened this issue Jun 1, 2018 · 3 comments

Comments

@X-wenhao
Copy link

X-wenhao commented Jun 1, 2018

I tried to run test_docker_image.sh ,but failed.

The error of bash test_docker_image.sh X-wenhao :

unable to prepare context: The Dockerfile (/root/.cache/temp/ball_in_box/Dockerfile) must be within the build context (/root/.cache/temp/ball_in_box/images/X-wenhao) 

The output of docker version :

Docker version 1.13.1, build 092cba3   

The output of lsb_release --all :

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:        16.04
Codename:       xenial
@X-wenhao
Copy link
Author

X-wenhao commented Jun 1, 2018

I tried the docker-ee:

Docker version 17.06.2-ee-12, build fb5da67

This problem still exists.

@pipehappy1
Copy link
Owner

Please check out the following thread.

moby/moby#14339

Simply put, don't use /tmp directory. Use somewhere in your home directory.

@X-wenhao
Copy link
Author

X-wenhao commented Jun 1, 2018

I create a user in my ubuntu server and run it in /home/user , but it still doesn't work. However , when I try it in my archlinux ,it works well.

Now I'm confused and don't know how to deal with it.

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