problem z kompilacją

bicker
Posty: 469
Rejestracja: wt lut 02, 2016 8:18 am

Kod: Zaznacz cały

supla@optiplex:~/supla-docker$ docker info
Client:
 Debug Mode: false

Server:
 Containers: 1
  Running: 0
  Paused: 0
  Stopped: 1
 Images: 5
 Server Version: 19.03.12
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.4.0-42-generic
 Operating System: Ubuntu 18.04.5 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 3.724GiB
 Name: optiplex
 ID: YWJK:3SBT:RRZA:5AMR:WR7B:V3VE:JJFP:Z5VZ:RFGP:GK3K:JHQ3:PVDX
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support
Awatar użytkownika
pzygmunt
Posty: 18207
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

No to brak uprawnień (drugi komunikat w logu).

https://docs.docker.com/engine/install/ ... stinstall/
bicker
Posty: 469
Rejestracja: wt lut 02, 2016 8:18 am

sprawdzałem, nadawałem od nowa, grupę itd...i nic
znalazłe jeszcze coś takiego

albo WARNING: Your kernel does not support swap limit capabilities. Limitation discarded.

https://docs.docker.com/engine/referenc ... line/info/
Awatar użytkownika
pzygmunt
Posty: 18207
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

A czy sudo ./build.sh działa ?
bicker
Posty: 469
Rejestracja: wt lut 02, 2016 8:18 am

działa
Awatar użytkownika
pzygmunt
Posty: 18207
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

No to zbuduj z root-a, a uruchom z usera.
bicker
Posty: 469
Rejestracja: wt lut 02, 2016 8:18 am

Kod: Zaznacz cały

supla@supla-OptiPlex:~/supla-docker$ sudo ./build.sh
[sudo] password for supla: 
Sending build context to Docker daemon  416.3kB
Step 1/9 : FROM debian:jessie
 ---> 0ac4637d440f
Step 2/9 : RUN apt-get update
 ---> Using cache
 ---> 5054a28c0675
Step 3/9 : RUN apt-get -y install git vim wget build-essential python python-pip
 ---> Using cache
 ---> fd322c274c4e
Step 4/9 : RUN pip install esptool
 ---> Using cache
 ---> 60b3cd639d97
Step 5/9 : RUN mkdir /hdd2
 ---> Using cache
 ---> 637bc056b0b3
Step 6/9 : RUN if uname -m | grep x86_64; then       cd /hdd2 &&       wget https://www.acsoftware.pl/files/Espressif_x64-docker.tgz &&       tar zxvf Espressif_x64-docker.tgz &&       rm Espressif_x64-docker.tgz &&       cd / &&       wget https://www.acsoftware.pl/files/supla-esp-signtool.tgz &&       tar zxvf supla-esp-signtool.tgz &&       cp -r supla-esp-signtool/* / &&       rm -r supla-esp-signtool*;     else       cd /hdd2 &&       wget https://www.acsoftware.pl/files/Espressif_x86-docker.tgz &&       tar zxvf Espressif_x86-docker.tgz &&       rm Espressif_x86-docker.tgz;     fi
 ---> Running in b39b3526b162
x86_64
converted 'https://www.acsoftware.pl/files/Espressif_x64-docker.tgz' (ANSI_X3.4-1968) -> 'https://www.acsoftware.pl/files/Espressif_x64-docker.tgz' (UTF-8)
--2020-09-01 05:45:35--  https://www.acsoftware.pl/files/Espressif_x64-docker.tgz
Resolving www.acsoftware.pl (www.acsoftware.pl)... 145.239.92.155
Connecting to www.acsoftware.pl (www.acsoftware.pl)|145.239.92.155|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 37371649 (36M) [application/x-gzip]
Saving to: 'Espressif_x64-docker.tgz'

     0K .......... .......... .......... .......... ..........  0%  823K 44s
  (...)
 36400K .......... .......... .......... .......... .......... 99%  158M 0s
 36450K .......... .......... .......... .......... .....     100% 24.1M=7.6s

2020-09-01 05:45:43 (4.69 MB/s) - 'Espressif_x64-docker.tgz' saved [37371649/37371649]

Espressif/
Espressif/ESP8266_BIN154/
(...)
Espressif/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/ext/pb_ds/detail/binary_heap_/point_const_iterator.hpp
Espressif/xtensa-lx106-elf/xtensa-lx106-e  50K .......... .......... .......... .......... ..........  0% 2.04M 31s
   100K .......... .......... .......... .......... ..........  0% 1.12M 31s
   150K .......... .......... .......... .......... ..........  0% 3.06M 26s
(...)
 36300K .......... .......... .......... .......... .......... 99% 66.2M 0s
 36350K .......... .......... .......... .......... .......... 99% 2.08M 0slf/include/c++/4.8.2/ext/pb_ds/detail/binary_heap_/iterators_fn_imps.hpp
Espressif/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp
(...)

Espressif/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/crtbegin.o
Espressif/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/crti.o
Espressif/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/libgcov.a
converted 'https://www.acsoftware.pl/files/supla-esp-signtool.tgz' (ANSI_X3.4-1968) -> 'https://www.acsoftware.pl/files/supla-esp-signtool.tgz' (UTF-8)
--2020-09-01 05:45:44--  https://www.acsoftware.pl/files/supla-esp-signtool.tgz
Resolving www.acsoftware.pl (www.acsoftware.pl)... 145.239.92.155
Connecting to www.acsoftware.pl (www.acsoftware.pl)|145.239.92.155|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-09-01 05:45:44 ERROR 404: Not Found.

The command '/bin/sh -c if uname -m | grep x86_64; then       cd /hdd2 &&       wget https://www.acsoftware.pl/files/Espressif_x64-docker.tgz &&       tar zxvf Espressif_x64-docker.tgz &&       rm Espressif_x64-docker.tgz &&       cd / &&       wget https://www.acsoftware.pl/files/supla-esp-signtool.tgz &&       tar zxvf supla-esp-signtool.tgz &&       cp -r supla-esp-signtool/* / &&       rm -r supla-esp-signtool*;     else       cd /hdd2 &&       wget https://www.acsoftware.pl/files/Espressif_x86-docker.tgz &&       tar zxvf Espressif_x86-docker.tgz &&       rm Espressif_x86-docker.tgz;     fi' returned a non-zero code: 8
supla@supla-OptiPlex:~/supla-docker$ ./run.sh
Cloning into 'supla-espressif-esp'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 2444 (delta 3), reused 5 (delta 3), pack-reused 2434
Receiving objects: 100% (2444/2444), 1.16 MiB | 1.85 MiB/s, done.
Resolving deltas: 100% (1848/1848), done.
Unable to find image 'devel/esp8266:latest' locally
docker: Error response from daemon: pull access denied for devel/esp8266, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
supla@supla-OptiPlex:~/supla-docker$ 
bicker
Posty: 469
Rejestracja: wt lut 02, 2016 8:18 am

bicker pisze: wt wrz 01, 2020 5:55 am

Kod: Zaznacz cały

supla@supla-OptiPlex:~/supla-docker$ sudo ./build.sh
[sudo] password for supla: 
Sending build context to Docker daemon  416.3kB
Step 1/9 : FROM debian:jessie
 ---> 0ac4637d440f
Step 2/9 : RUN apt-get update
 ---> Using cache
 ---> 5054a28c0675
Step 3/9 : RUN apt-get -y install git vim wget build-essential python python-pip
 ---> Using cache
 ---> fd322c274c4e
Step 4/9 : RUN pip install esptool
 ---> Using cache
 ---> 60b3cd639d97
Step 5/9 : RUN mkdir /hdd2
 ---> Using cache
 ---> 637bc056b0b3
Step 6/9 : RUN if uname -m | grep x86_64; then       cd /hdd2 &&       wget https://www.acsoftware.pl/files/Espressif_x64-docker.tgz &&       tar zxvf Espressif_x64-docker.tgz &&       rm Espressif_x64-docker.tgz &&       cd / &&       wget https://www.acsoftware.pl/files/supla-esp-signtool.tgz &&       tar zxvf supla-esp-signtool.tgz &&       cp -r supla-esp-signtool/* / &&       rm -r supla-esp-signtool*;     else       cd /hdd2 &&       wget https://www.acsoftware.pl/files/Espressif_x86-docker.tgz &&       tar zxvf Espressif_x86-docker.tgz &&       rm Espressif_x86-docker.tgz;     fi
 ---> Running in b39b3526b162
x86_64
converted 'https://www.acsoftware.pl/files/Espressif_x64-docker.tgz' (ANSI_X3.4-1968) -> 'https://www.acsoftware.pl/files/Espressif_x64-docker.tgz' (UTF-8)
--2020-09-01 05:45:35--  https://www.acsoftware.pl/files/Espressif_x64-docker.tgz
Resolving www.acsoftware.pl (www.acsoftware.pl)... 145.239.92.155
Connecting to www.acsoftware.pl (www.acsoftware.pl)|145.239.92.155|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 37371649 (36M) [application/x-gzip]
Saving to: 'Espressif_x64-docker.tgz'

     0K .......... .......... .......... .......... ..........  0%  823K 44s
  (...)
 36400K .......... .......... .......... .......... .......... 99%  158M 0s
 36450K .......... .......... .......... .......... .....     100% 24.1M=7.6s

2020-09-01 05:45:43 (4.69 MB/s) - 'Espressif_x64-docker.tgz' saved [37371649/37371649]

Espressif/
Espressif/ESP8266_BIN154/
(...)
Espressif/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/ext/pb_ds/detail/binary_heap_/point_const_iterator.hpp
Espressif/xtensa-lx106-elf/xtensa-lx106-e  50K .......... .......... .......... .......... ..........  0% 2.04M 31s
   100K .......... .......... .......... .......... ..........  0% 1.12M 31s
   150K .......... .......... .......... .......... ..........  0% 3.06M 26s
(...)
 36300K .......... .......... .......... .......... .......... 99% 66.2M 0s
 36350K .......... .......... .......... .......... .......... 99% 2.08M 0slf/include/c++/4.8.2/ext/pb_ds/detail/binary_heap_/iterators_fn_imps.hpp
Espressif/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp
(...)

Espressif/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/crtbegin.o
Espressif/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/crti.o
Espressif/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/libgcov.a
converted 'https://www.acsoftware.pl/files/supla-esp-signtool.tgz' (ANSI_X3.4-1968) -> 'https://www.acsoftware.pl/files/supla-esp-signtool.tgz' (UTF-8)
--2020-09-01 05:45:44--  https://www.acsoftware.pl/files/supla-esp-signtool.tgz
Resolving www.acsoftware.pl (www.acsoftware.pl)... 145.239.92.155
Connecting to www.acsoftware.pl (www.acsoftware.pl)|145.239.92.155|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-09-01 05:45:44 ERROR 404: Not Found.

The command '/bin/sh -c if uname -m | grep x86_64; then       cd /hdd2 &&       wget https://www.acsoftware.pl/files/Espressif_x64-docker.tgz &&       tar zxvf Espressif_x64-docker.tgz &&       rm Espressif_x64-docker.tgz &&       cd / &&       wget https://www.acsoftware.pl/files/supla-esp-signtool.tgz &&       tar zxvf supla-esp-signtool.tgz &&       cp -r supla-esp-signtool/* / &&       rm -r supla-esp-signtool*;     else       cd /hdd2 &&       wget https://www.acsoftware.pl/files/Espressif_x86-docker.tgz &&       tar zxvf Espressif_x86-docker.tgz &&       rm Espressif_x86-docker.tgz;     fi' returned a non-zero code: 8
supla@supla-OptiPlex:~/supla-docker$ ./run.sh
Cloning into 'supla-espressif-esp'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 2444 (delta 3), reused 5 (delta 3), pack-reused 2434
Receiving objects: 100% (2444/2444), 1.16 MiB | 1.85 MiB/s, done.
Resolving deltas: 100% (1848/1848), done.
Unable to find image 'devel/esp8266:latest' locally
docker: Error response from daemon: pull access denied for devel/esp8266, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
supla@supla-OptiPlex:~/supla-docker$ 

udostepniam TeamViewera
TV 358 171 467
Pass: 68hwu2
Awatar użytkownika
pzygmunt
Posty: 18207
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontakt:

Cały czas masz problem z uprawnieniami.
sudo ./run.sh
bicker
Posty: 469
Rejestracja: wt lut 02, 2016 8:18 am

Kod: Zaznacz cały

supla@supla-OptiPlex:~/supla-docker$ sudo ./run.sh
Unable to find image 'devel/esp8266:latest' locally
docker: Error response from daemon: pull access denied for devel/esp8266, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
supla@supla-OptiPlex:~/supla-docker$ 
ODPOWIEDZ

Wróć do „supla-dev”