Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [Symfony5][Docker] Docker error
ProgXT
post 22.04.2021, 10:13:30
Post #1





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 5.04.2017

Ostrzeżenie: (0%)
-----


Hej

Chcę przerobić książkę z oficjalnej strony Symfony https://symfony.com/doc/current/the-fast-tr.../2-project.html

O co chodzi z tym Dockerem ?

Kod
pc@pc-MRC-WX0:/var/www/html$ symfony new --version=5.2-1 --book guestbook
Checking Book Requirements
--------------------------

[OK] Git installed
[OK] PHP installed version 8.0.3 (/usr/bin/php8.0)
[OK] PHP extension "gd" installed - optional - needed only for chapter 23 (Imagine)
[OK] PHP extension "ctype" installed - required
[OK] PHP extension "pdo_pgsql" installed - required
[OK] PHP extension "curl" installed - optional - needed only for chapter 17 (Panther)
[OK] PHP extension "amqp" installed - optional - needed only for chapter 32
[OK] PHP extension "intl" installed - required
[OK] PHP extension "openssl" installed - required
[OK] PHP extension "sodium" installed - required
[OK] PHP extension "xsl" installed - required
[OK] PHP extension "redis" installed - optional - needed only for chapter 31
[OK] PHP extension "json" installed - required
[OK] PHP extension "session" installed - required
[OK] PHP extension "xml" installed - required

Kod
[OK] PHP extension "tokenizer" installed - required
[OK] PHP extension "mbstring" installed - required
[OK] PHP extension "zip" installed - optional - needed only for chapter 17 (Panther)
[OK] Composer installed
[OK] Docker installed
[OK] Docker Compose installed
[OK] Yarn installed

Cloning the Repository
----------------------

Klonowanie do „/var/www/html/guestbook”...
remote: Enumerating objects: 15939, done.
remote: Counting objects: 100% (15939/15939), done.
remote: Compressing objects: 100% (11582/11582), done.
remote: Total 15939 (delta 3951), reused 15595 (delta 3607), pack-reused 0
Pobieranie obiektów: 100% (15939/15939), 17.84 MiB | 451.00 KiB/s, gotowe.
Rozwiązywanie delt: 100% (3951/3951), gotowe.

Getting Ready for the First Step of the Book
--------------------------------------------

[GIT] Check for not yet committed changes: [ OK ]
[GIT] Check Git un-tracked files: [ OK ]

[GIT] Removing Git ignored files (vendor, cache, ...): [ OK ]
[GIT] Resetting Git staged files: [ OK ]
[GIT] Removing un-tracked Git files: [ OK ]
[WEB] Adding .env.local: [ OK ]
[WEB] Stopping Docker Containers: [ KO ]                                                        <<---
[17148] Failed to execute script docker-compose
Traceback (most recent call last):
  File "urllib3/connectionpool.py", line 677, in urlopen
  File "urllib3/connectionpool.py", line 392, in _make_request
  File "http/client.py", line 1277, in request
  File "http/client.py", line 1323, in _send_request
  File "http/client.py", line 1272, in endheaders
  File "http/client.py", line 1032, in _send_output
  File "http/client.py", line 972, in send
  File "docker/transport/unixconn.py", line 43, in connect
PermissionError: [Errno 13] Permission denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "requests/adapters.py", line 449, in send
  File "urllib3/connectionpool.py", line 727, in urlopen
  File "urllib3/util/retry.py", line 410, in increment
  File "urllib3/packages/six.py", line 734, in reraise
  File "urllib3/connectionpool.py", line 677, in urlopen
  File "urllib3/connectionpool.py", line 392, in _make_request
  File "http/client.py", line 1277, in request
  File "http/client.py", line 1323, in _send_request
  File "http/client.py", line 1272, in endheaders
  File "http/client.py", line 1032, in _send_output
  File "http/client.py", line 972, in send
  File "docker/transport/unixconn.py", line 43, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker/api/client.py", line 214, in _retrieve_server_version
  File "docker/api/daemon.py", line 181, in version
  File "docker/utils/decorators.py", line 46, in inner
  File "docker/api/client.py", line 237, in _get
  File "requests/sessions.py", line 543, in get
  File "requests/sessions.py", line 530, in request
  File "requests/sessions.py", line 643, in send
  File "requests/adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 81, in main
  File "compose/cli/main.py", line 200, in perform_command
  File "compose/cli/command.py", line 70, in project_from_options
  File "compose/cli/command.py", line 153, in get_project
  File "compose/cli/docker_client.py", line 43, in get_client
  File "compose/cli/docker_client.py", line 170, in docker_client
  File "docker/api/client.py", line 197, in __init__
  File "docker/api/client.py", line 222, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))

Re-run the command with --debug to get more information about the error

                  
  exit status 255

Pozdrawiam

Ten post edytował ProgXT 22.04.2021, 11:23:48
Go to the top of the page
+Quote Post
Pyton_000
post 22.04.2021, 10:21:06
Post #2





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

Ostrzeżenie: (0%)
-----


Skoro przerabiasz książkę to wypadałoby od początki: https://symfony.com/doc/current/the-fast-tr...pl/1-tools.html
Go to the top of the page
+Quote Post
ProgXT
post 22.04.2021, 11:21:47
Post #3





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 5.04.2017

Ostrzeżenie: (0%)
-----


Robiłem od początku Lkingsmiley.png Instalowałem wszystko co trzeba. Myślałem, że z Dokerem też mam wszystko co trzeba. Jeszcze będę kombinował.
Go to the top of the page
+Quote Post
Pyton_000
post 22.04.2021, 11:38:49
Post #4





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

Ostrzeżenie: (0%)
-----


musisz doinstalować docker-compose https://docs.docker.com/compose/install/
Go to the top of the page
+Quote Post
ProgXT
post 22.04.2021, 11:55:38
Post #5





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 5.04.2017

Ostrzeżenie: (0%)
-----


Miałem zainstalowanego. Już działa. Uprawnienia do dockera trzeba było zrobić dla nie root-a.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 28.03.2024 - 22:19