docker run on Orange Pi zero H2+
i run docker on Orange Pi zero H2+1) update you apt
sudo apt update && sudo apt upgrade
2) https://howchoo.com/g/nmrlzmq1ymn/how-to-install-docker-on-your-raspberry-pi
curl -sSL https://get.docker.com | sh Edited by sypperpit at 2018-8-26 16:51
date
DietPi | 20:10 | Sat 25/08/18
───────────────────────────────────────
v6.14 | OrangePi Zero (armv7l)
───────────────────────────────────────
if you have error https update-ca-certificates, you date not actual
"Err:7 https://deb.debian.org/debian-security stretch/updates Release"
Check you date!
sudo cpu
Root access verified.
─────────────────────────────────────────────────────
DietPi CPU Info
Use dietpi-config to change CPU / performance options
─────────────────────────────────────────────────────
Architecture | armv7l
Temp | 26'c : 78'f| Who put me in the freezer!
Governor | ondemand
Throttle up| 85% CPU usage
Current Freq Min Freq Max Freq
CPU0 | 1200 MHz 240 MHz 1200 MHz
CPU1 | 1200 MHz 240 MHz 1200 MHz
CPU2 | 1200 MHz 240 MHz 1200 MHz
CPU3 | 1200 MHz 240 MHz 1200 MHz
[ INFO ] DietPi-CPU_info | CPU current frequency, may be affected by this script, due to the processing required to run it.
docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(arm32v7)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
run -it ubuntu bash
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
Status: Downloaded newer image for ubuntu:latest
root@<you_id_number>:/# Create new connection to orange pi zero
ssh root@orangepi.local
Temp | 25'c : 77'f
sudo cpu
Edited by sypperpit at 2018-8-26 01:53
ps ax | grep docker
1485 ? Ssl 1:08 /usr/bin/dockerd -H fd://
1745 ? Ssl 0:24 docker-containerd --config /var/run/docker/containerd/containerd.toml
2061 pts/0 Sl+ 0:01 docker run -it ubuntu bash
docker-containerd-shim -namespace moby -workdir /var/lib/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/<you_id> -address /var/run/docker/containerd/docker-containerd.sock -containerd-binary /usr/bin/docker-containerd -runtime-root /var/run/docker/runtime-runc docker run -p 80:80 -it ubuntu bash Edited by sypperpit at 2018-8-26 07:16
netstat -antp
(No info could be read for "-p": geteuid()=1001 but you should be root.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
-
tcp6 0 0 :::80 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
docker pull phpStatus: Downloaded newer image for php:latest
https://hub.docker.com/_/php/
Edited by sypperpit at 2018-8-26 09:50
in folder /home/<username>/www#
docker run -d -p 80:80 --name my-apache-php-app -v "$PWD":/var/www/html php:7.2-apache
docker ps
test start grav cms
need mod_rewrite
docker run -v $PWD:/var/www/html --name php_apache0007 -p 80:80 php:7.2-apache /bin/bash -c 'a2enmod rewrite; apache2-foreground; '