Please select To the mobile version | Continue to access the desktop computer version


Hot search: orangepi
Return to list New
View: 18600|Reply: 26

docker run on Orange Pi zero H2+

[Copy link]
Post time 2018-8-26 01:12:32 | Show all posts |Read mode
i run docker on Orange Pi zero H2+
1) update you apt
  1. sudo apt update && sudo apt upgrade
Copy the Code

2) ... n-your-raspberry-pi
  1. curl -sSL | sh
Copy the Code
 Author| Post time 2018-8-26 01:17:16 | Show all posts
Edited by sypperpit at 2018-8-26 16:51
  1. date
Copy the 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 stretch/updates Release"

Check you date!
 Author| Post time 2018-8-26 01:18:53 | Show all posts
  1. sudo cpu
Copy the 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| Post time 2018-8-26 01:37:24 | Show all posts
  1. docker run hello-world
Copy the 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.
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:
 Author| Post time 2018-8-26 01:40:03 | Show all posts
  1. run -it ubuntu bash
Copy the Code

Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
Status: Downloaded newer image for ubuntu:latest
 Author| Post time 2018-8-26 01:49:33 | Show all posts
Create new connection to orange pi zero
  1. ssh root@orangepi.local
Copy the Code

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

 Author| Post time 2018-8-26 01:52:01 | Show all posts
Edited by sypperpit at 2018-8-26 01:53
  1. ps ax | grep docker
Copy the 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| Post time 2018-8-26 07:06:16 | Show all posts
  1. docker run -p 80:80 -it ubuntu bash
Copy the Code
 Author| Post time 2018-8-26 07:07:29 | Show all posts
Edited by sypperpit at 2018-8-26 07:16
  1. netstat -antp
Copy the 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 the Code
Status: Downloaded newer image for php:latest

 Author| Post time 2018-8-26 07:38:34 | Show all posts
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 the Code
  1. docker ps
Copy the 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 the Code

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2022-5-28 02:01 GMT+8 , Processed in 0.037003 second(s), 23 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list