Skip to content

Instantly share code, notes, and snippets.

@webwurst
Forked from henrik-muehe/Dockerfile
Last active January 11, 2018 17:05
Show Gist options
  • Save webwurst/8235750 to your computer and use it in GitHub Desktop.
Save webwurst/8235750 to your computer and use it in GitHub Desktop.
# Fake a fuse install
# from https://gist.github.com/henrik-muehe/6155333/e35981031bad80ada4cbf1e4a48ba7f86a019db4
# see https://github.com/dotcloud/docker/issues/2191
run apt-get install libfuse2
run cd /tmp &&\
apt-get download fuse &&\
dpkg-deb -x fuse_* . &&\
dpkg-deb -e fuse_* &&\
rm fuse_*.deb &&\
echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst &&\
dpkg-deb -b . /fuse.deb &&\
dpkg -i /fuse.deb
@Kurt29
Copy link

Kurt29 commented Jan 11, 2018

that throws an error in Ubuntu Xenial:
/var/lib/dpkg/info/fuse.postinst: 1: /var/lib/dpkg/info/fuse.postinst: -en: not found
echo '#!/bin/bash\nexit 0\n' -en> DEBIAN/postinst &&\
Did you have to use modprobe fuse for it to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment