gcgarner / IOTstack

docker stack for getting started on IOT on the Raspberry PI
GNU General Public License v3.0
1.5k stars 578 forks source link

Cannot create container for service #173

Open GACHAPO opened 4 years ago

GACHAPO commented 4 years ago

Hello,

Having to build a container, in this case Portainer. When I use the command "docker-compose up -d" I get the following error message;

pi@raspberrypi:~/IOTstack $ docker-compose up -d Creating network "iotstack_default" with the default driver Pulling portainer (portainer/portainer:)... latest: Pulling from portainer/portainer d1e017099d17: Downloading [> ] 1.839kB/155.2kBlling fs layer d1e017099d17: Downloading [==================================================>] d1e017099d17: Extracting [==========> ] d1e017099d17: Extracting [==================================================>] d1e017099d17: Pull complete 860ebb866910: Pull complete Digest: sha256:4ae7f14330b56ffc8728e63d355bc4bc7381417fa45ba0597e5dd32682901080 Status: Downloaded newer image for portainer/portainer:latest Creating portainer ... error

ERROR: for portainer Cannot create container for service portainer: b'error creating aufs mount to /var/lib/docker/aufs/mnt/1ee98ee62fe89ff05d107249a39ae0a6f70f34d06e4c35662c7f786e0987d1a3-init: mount target=/var/lib/docker/aufs/mnt/1ee98ee62fe89ff05d107249a39ae0a6f70f34d06e4c35662c7f786e0987d1a3-init data=br:/var/lib/docker/aufs/diff/1ee98ee62fe89ff05d107249a39ae0a6f70f34d06e4c35662c7f786e0987d1a3-init=rw:/var/lib/docker/aufs/diff/c9f7215dc6248c3abe9c34defce15aa09ac413086fae5714c03df924bac75315=ro+wh:/var/lib/docker/aufs/diff/3f05d884395e74bd63146e76d12bcebb372b470bf1f0056a48566f78bc0657f9=ro+wh,dio,xino=/dev/shm/aufs.xino: invalid argument'

ERROR: for portainer Cannot create container for service portainer: b'error creating aufs mount to /var/lib/docker/aufs/mnt/1ee98ee62fe89ff05d107249a39ae0a6f70f34d06e4c35662c7f786e0987d1a3-init: mount target=/var/lib/docker/aufs/mnt/1ee98ee62fe89ff05d107249a39ae0a6f70f34d06e4c35662c7f786e0987d1a3-init data=br:/var/lib/docker/aufs/diff/1ee98ee62fe89ff05d107249a39ae0a6f70f34d06e4c35662c7f786e0987d1a3-init=rw:/var/lib/docker/aufs/diff/c9f7215dc6248c3abe9c34defce15aa09ac413086fae5714c03df924bac75315=ro+wh:/var/lib/docker/aufs/diff/3f05d884395e74bd63146e76d12bcebb372b470bf1f0056a48566f78bc0657f9=ro+wh,dio,xino=/dev/shm/aufs.xino: invalid argument' ERROR: Encountered errors while bringing up the project.

Paraphraser commented 4 years ago

Recommend Googling “error creating aufs mount to /var/lib/docker/aufs/mnt/“ which should lead you to StackOverflow.

I have not seen this problem myself but I did a test remove of my Portainer image and then brought the stack up. My RPi redownloaded Portainer without incident. The sha256 signature in my download matched the one in your question so I doubt that the problem is either specific to a recent image or generic to IOTstack. I reckon you’ll find that something like the fixes in that StackOverflow post will get you going again. Please report back either way.

GACHAPO commented 4 years ago

Hi, thanks for coming back to me. I have narrowed down the problem.

I have a RPI4 and an SSD, so I used Berryboot to allow access to the SSD and built docker on the Raspbian Buster install using IOTstack. It would appear that Berryboot has issues with aufs and as such IOTstack will never work.

I have since built a bootable SD with Raspbian on the SSD and I now have no issues and IOTstack builds and installs sucessfully.