Visar inlägg med etikett docker. Visa alla inlägg
Visar inlägg med etikett docker. Visa alla inlägg

måndag 14 november 2016

Running docker images on Raspberry Pi

My Raspberry Pi 2 is running Ubuntu. I wanted to try the phoronix test suite with a different compiler and thought that Docker could be great for this. After installing docker and trying to run my image I was met by "write pipe: bad file descriptor".

The issue was that docker is not architecture aware. Thus running "docker create ubuntu" will default to x86_64, regardless of your arch. To run ubuntu the solution was to ask for armv7/armhf-ubuntu instead.

Sources:
hub.docker.com - armv7

Stackoverflow

onsdag 29 oktober 2014

Ta bort filer som docker skapat.

Först listar jag de containrar som körs:
sudo docker ps -aq

Sedan kör jag:
sudo docker rm myContainerId

Efter det vill jag ta bort de images som docker skapat.

Jag börjar med att lista mina images:
sudo docker images --filter dangling=true --quiet

Sedan kör jag:
sudo docker rmi myImageId

Källa:
GitHub