Friday, October 7, 2016

Docker 32bit on VPS Ubuntu

Docker 32bit on VPS Ubuntu

:~# git clone https://github.com/docker/docker.git
:~# cd docker/
:~/docker#  mv Dockerfile Dockerfile.backup

:~/docker# sudo apt-get install build-essential
:~/docker# sudo make build
:~/docker# git clone https://github.com/docker-32bit/ubuntu.git
:~/docker# cd ubuntu

:~/docker/ubuntu# bash build-image.sh

:~/docker/ubuntu# sudo service docker start

:~/docker/ubuntu# sudo groupadd docker

:~/docker/ubuntu# sudo usermod -aG docker magvpn
:~/docker/ubuntu# exit
logout
Connection to <ip address> closed.

:~# apt-cache policy docker-engine


:~# uname -r
4.4.0-38-generic

:~# sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual

:~#sudo reboot




:~# sudo service docker restart

:~#sudo service docker status

:~# sudo nano /etc/apt/sources.list.d/docker.list


:~# sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
:~# sudo reboot

#  docker images -a
# docker ps -a

# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                      PORTS               NAMES
52bb703212fa        1c76a4c59dc5        "/bin/bash"         55 minutes ago      Exited (0) 55 minutes ago                       32buntu


from command docker ps -a use Image-ID and run with -ti options

#docker run -t -i 1c76a4c59dc5 /bin/bash

 

root@4e8daaf147d5:/# uname -a
Linux 4e8daaf147d5 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:41:41 UTC 2016 i686 i686 i686 GNU/Linuxroot@4e8daaf147d5:/#
oot@4e8daaf147d5:/# uname -m
i686
root@4e8daaf147d5:/



root@ubuntu-512mb-fra1-01:~# docker run hello-world
docker: Error response from daemon: rpc error: code = 2 desc = "oci runtime error: exec format error".


# docker version
Client:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.6.2
 Git commit:   b9f10c9
 Built:        Thu, 16 Jun 2016 21:17:51 +1200
 OS/Arch:      linux/386

Server:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.6.2
 Git commit:   b9f10c9
 Built:        Thu, 16 Jun 2016 21:17:51 +1200
 OS/Arch:      linux/386


#

No comments:

Post a Comment

Thank you for your comment. Will try to react as soon as possible.

Regards,

Networ King