-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Run docker on drone.io? #316
Comments
this is more of a question regarding Docker in Docker. Your build is already running inside a Docker container. The default cgroup permissions prevent you from running Docker inside Docker because certain syscalls (such as mounting filesystems) are restricted, which is why you are seeing those error messages. one workaround might be to run your build in privileged mode. There is a checkbox on your repository settings screen where you can enable this. Your builds will then run inside a Docker container with the I'd also recommend subscribing to issue #1 and issue #114 which are both enhancement requests to build and push Docker images using Drone. These existing issue encompass the overall problem you've described, so I'm going to close this as a duplicate. Thanks for trying out Drone, and we'll be sure to improve our Docker support in the coming releases! Please keep the feedback coming. |
I can't find anything to do with privileged mode in your UI. It's hard to understand if this is only available to enterprise users or not (I have an open source project that is a tool for docker itself, so needs to have docker around for integration tests). Is this available on open source projects? If not, at what price mark does it become an option? |
@d11wtq this thread is for the open source Drone CI server which is a new, alpha product. It is a complete re-write of the older, proprietary codebase powering drone.io, so for all intents and purposes they are completely different products. The open source Drone CI server has a checkbox for privileged mode on the repository settings screen. The hosted version (at drone.io) does not have privileged mode and will therefore not allow running Docker inside the container. |
I should also note that this open source codebase will eventually power drone.io once it is more stable. In the mean time you would need to run your own instance of the open source version for Docker in Docker. |
Do you know when the hosted version (at drone.io) will use the open source Drone CI with the checkbox for privileged mode? |
Hi,
I'm wondering if I can run a docker on drone.io?
I have some Dockerfiles and a shell script. The script will use those Dockerfiles to somehow build a docker images. Therefore, I'll need a docker client & docker daemon.
I try to install & run docker via the following commands on drone.io:
However, the docker status gives:
and the log
/var/log/upstart/docker.log
:and the
docker info
givesDid I miss something?
The text was updated successfully, but these errors were encountered: