ubuntu - Unknown filesystem type on /dev/mapper/docker-202 -


i attempting build docker image dockerfile. file runs this:

from ubuntu:14.04  env debian_frontend noninteractive env home=/home/root env gopath=$home/go env path=$path:/usr/local/go/bin:$home/go/bin  run mkdir -p $home run apt-get -y install wget run apt-get -y install git 

everything works, until installation of wget. appear finish then, straight after "running hooks in /etc/ca-certificates/update.d....done." docker throws following error:

info[0032] unknown filesystem type on /dev/mapper/docker-202:1-145547-28276018... 

the build stops. attempted comment out wget installation, same thing happened upon git installation. commented out entire file, except wget line, worked, strangely enough. doesn't me much, because rest of file kind of important... tried see line problematic one, seems every single command executed before apt-get resulted in failure straight after apt-get.

so moved apt-get top of file, , again, worked, next command (env debian_frontend noninteractive) resulted in same failure. that's plain weird...

any ideas?

(side note: when running container ubuntu image , executing commands manually, works perfectly...)

edit 22.07.15: neglected mention happens when running build on aws ec2 instance (version 3.4.73-64.112.amzn1.x86_64). when ran exact same thing on local virtual machine ubuntu 14.04, build succeeded no errors.

well, solved it. sort of. don't know why problem caused (if does, please let me know, i'm curious), here's how solved: instead of device mapper filesystem, seemed source of problem, created btrfs filesystem, docker appears quite happy with.

these steps took:

i started adding new volume ec2 instance (2gb of general purpose ssd). this guide doing that.

now started switch device mapper btrfs:

sudo service docker stop sudo rm -rf /var/lib/docker sudo mkfs.btrfs -f -o ^extref -l docker /dev/xvdf # extref option not supported , causes kinds of trouble, why disabled sudo echo "/dev/xvdf /var/lib/docker btrfs defaults 0 0" >> /etc/fstab sudo mount /dev/xvdf /mnt 

now configured docker use btrfs editing file /etc/sysconfig/docker so:

options="-s btrfs" 

when started service (sudo service docker start), see, running docker info, switch successful: storage driver: btrfs.

i ran build again, , worked charm :)


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -