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

Cannot install java in a container: mknod: `fuse-': Operation not permitted #963

Closed
vdeparday opened this issue Jun 20, 2013 · 4 comments
Closed

Comments

@vdeparday
Copy link

I am using docker on mac os x with in a vagrant box started using the Vagrantfile available on the docker repository.

Vagrant version 1.2.2
Docker version:
Client version: 0.4.2
Server version: 0.4.2
Go version: go1.0.3

I am trying to install java in a container using the following command:

docker pull ubuntu
docker run -i -t ubuntu:12:04 /bin/bash
echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
apt-get update
apt-get install openjdk-7-jdk

Then I get the following error during the install process:

Setting up fuse (2.8.6-2ubuntu2) ...
Creating fuse group...
Adding group `fuse' (GID 102) ...
Done.
Creating fuse device...
mknod: `fuse-': Operation not permitted
makedev fuse c 10 229 root root 0660: failed
chown: cannot access `/dev/fuse': No such file or directory
dpkg: error processing fuse (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin ...No apport report written because MaxReports is reached already

ldconfig deferred processing now taking place
Errors were encountered while processing:
 fuse
E: Sub-process /usr/bin/dpkg returned an error code (1)
@creack
Copy link
Contributor

creack commented Jun 20, 2013

Duplicate of #514.

@creack creack closed this as completed Jun 20, 2013
@schickling
Copy link

Using RUN apt-get install -y --no-install-recommends openjdk-7-jdk worked for me as workaround.

@tsturzl
Copy link

tsturzl commented Jun 12, 2014

How is this closed. We are not trying to install fuse.

@tianon
Copy link
Member

tianon commented Jun 12, 2014

Because trying to install the JDK installs fuse, which creates a device node. If you can reproduce this with the latest version of Docker (1.0.0+), we can reopen (but we'd probably reopen #514 in that case, or possibly even a new issue, because the original issue here was/is fixed).

forresty referenced this issue in forresty/buildstep Sep 2, 2014
sxend added a commit to sxend/Dockerfiles that referenced this issue Sep 21, 2015
masakura added a commit to GrayBullet/docker-ci-environment that referenced this issue May 9, 2016
moby/moby#963
build 時の --privileged は使えないらしい
phanect added a commit to phanect/ossetup that referenced this issue Jul 2, 2016
phanect added a commit to phanect/ossetup that referenced this issue Jul 9, 2016
phanect added a commit to phanect/ossetup that referenced this issue Jul 16, 2016
phanect added a commit to phanect/ossetup that referenced this issue Jul 16, 2016
phanect added a commit to phanect/ossetup that referenced this issue Jul 16, 2016
phanect added a commit to phanect/ossetup that referenced this issue Jul 16, 2016
phanect added a commit to phanect/ossetup that referenced this issue Jul 16, 2016
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

5 participants