How to install Docker on 32bit machine having Ubuntu 12.04?

拥有回忆 提交于 2019-12-04 10:31:18

问题


I have followed the docker installation doc for installing it on my machine which is a 32 bit machine running Ubuntu 12.04

The step

$ sudo apt-get install docker-engine

fails saying

E: Unable to locate package docker-engine

It should have been installed, right?

Also I came to know that, Docker currently only supports 64bit platforms.

$ wget -qO- https://get.docker.io/ | sh
Error: you are not using a 64bit platform.
Docker currently only supports 64bit platforms.

Is there a way to I install it and make it work on 32bit machine?


回答1:


As per the prerequisites:

Docker requires a 64-bit installation regardless of your Ubuntu version. Additionally, your kernel must be 3.10 at minimum. The latest 3.10 minor version or a newer maintained version are also acceptable.

You will not be able to install Docker onto a 32bit platform.




回答2:


This is possible these days, with just a simple script. You could use https://gitlab.com/docker-32bit/ubuntu.

Works perfectly on my Ubuntu 16.04 32-bit system. I used it to install the office server Collabora Online for my Nextcloud:

wget https://gitlab.com/docker-32bit/ubuntu/raw/master/build-image.sh
# for Debian, use one of:
# wget https://gitlab.com/docker-32bit/debian/raw/armhf/build-image.sh
# wget https://gitlab.com/docker-32bit/debian/raw/i386/build-image.sh

sudo bash build-image.sh
docker -v
# Docker version 1.13.1, build 092cba3

sudo docker pull collabora/code
sudo docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=my\\.domain\\.com' --restart always --cap-add MKNOD collabora/code



回答3:


Although this is an old queston i found a simple solution for current (18.0.3) releases of docker-ce: https://github.com/mforkel/docker-ce-i386

The description of README-i386.md is all you need, but here the shot description:

1) use git clone to get a local version of the repository

2) in my case i needed a debian .deb file so i ran ARCH=i386 DOCKER_BUILD_PKGS=debian-stretch make deb in the main Folder

3) when the makescript finished you can find your deb file in ./components/packaging/deb/debbuild/debian-stretch

I did not test this build extensively, but running docker run hello-world worked without errors

EDIT: By now i can confirm many packages working. E.g. Portainer and Nextcloud. Some packages are build agains 64bit architecture and you have to build the container on your own, but it worked for me without any problems




回答4:


there has been some hacking, unsupported ways to do so, see

http://mwhiteley.com/linux-containers/2013/08/31/docker-on-i386.html

Keep in mind that the previous link was in August 2013, I am not sure you will be able to do the same with the latest versions of docker.




回答5:


Now, you can install with this command sudo apt install docker.io. After this, you will see lots of lines for the installation of Docker and the installer will ask you "do you want to continue?", you need to type y. Then, the installation will be finished. Now, you can check it with this command docker version. If you see just client section, you need to type sudo docker version. After this, you will see the client and server.



来源:https://stackoverflow.com/questions/37989534/how-to-install-docker-on-32bit-machine-having-ubuntu-12-04

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!