please choosego to mobile | Continue to access the PC version
View: 19421|Reply: 26

docker run on Orange Pi zero H2+

[Copy link]
Published in 2018-8-26 01:12:32 | Show all floors |Read mode
i run docker on Orange Pi zero H2+
1) update you apt
  1. sudo apt update && sudo apt upgrade
Copy code

2) https://howchoo.com/g/nmrlzmq1ym ... n-your-raspberry-pi
  1. curl -sSL https://get.docker.com | sh
Copy code
 Author| Published in 2018-8-26 01:17:16 | Show all floors
Edited by sypperpit at 2018-8-26 16:51
  1. date
Copy code



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!
 Author| Published in 2018-8-26 01:18:53 | Show all floors
  1. sudo cpu
Copy code

[  OK  ] 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.

 Author| Published in 2018-8-26 01:37:24 | Show all floors
  1. docker run hello-world
Copy code

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/
 Author| Published in 2018-8-26 01:40:03 | Show all floors
  1. run -it ubuntu bash
Copy code

Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
Status: Downloaded newer image for ubuntu:latest
root@<you_id_number>:/#
 Author| Published in 2018-8-26 01:49:33 | Show all floors
Create new connection to orange pi zero
  1. ssh root@orangepi.local
Copy code

Temp         |     25'c : 77'f
  1. sudo cpu
Copy code

 Author| Published in 2018-8-26 01:52:01 | Show all floors
Edited by sypperpit at 2018-8-26 01:53
  1. ps ax | grep docker
Copy code


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
 Author| Published in 2018-8-26 07:06:16 | Show all floors
  1. docker run -p 80:80 -it ubuntu bash
Copy code
 Author| Published in 2018-8-26 07:07:29 | Show all floors
Edited by sypperpit at 2018-8-26 07:16
  1. netstat -antp
Copy code

(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      -   

  1. docker pull php
Copy code
Status: Downloaded newer image for php:latest
https://hub.docker.com/_/php/

 Author| Published in 2018-8-26 07:38:34 | Show all floors
Edited by sypperpit at 2018-8-26 09:50

in folder /home/<username>/www#
  1. docker run -d -p 80:80 --name my-apache-php-app -v "$PWD":/var/www/html php:7.2-apache
Copy code
  1. docker ps
Copy code



test start grav cms

need mod_rewrite
  1. docker run -v $PWD:/var/www/html --name php_apache0007 -p 80:80 php:7.2-apache /bin/bash -c 'a2enmod rewrite; apache2-foreground; '
Copy code


This thread contains more resources

You need to Log in to download or view,No account?    Register

x
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list