Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao executar docker-compose up --build no linux - erro de permissão apos baixar o projeto

Ao executar o comando: docker-compose up --build me retorna as seguintes mensagens:


Traceback (most recent call last):
  File "/snap/docker/1779/lib/python3.6/site-packages/urllib3/connectionpool.py", line 710, in urlopen
    chunked=chunked,
  File "/snap/docker/1779/lib/python3.6/site-packages/urllib3/connectionpool.py", line 398, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/snap/docker/1779/usr/lib/python3.6/http/client.py", line 1285, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/snap/docker/1779/usr/lib/python3.6/http/client.py", line 1331, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/snap/docker/1779/usr/lib/python3.6/http/client.py", line 1280, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/snap/docker/1779/usr/lib/python3.6/http/client.py", line 1046, in _send_output
    self.send(msg)
  File "/snap/docker/1779/usr/lib/python3.6/http/client.py", line 984, in send
    self.connect()
  File "/snap/docker/1779/lib/python3.6/site-packages/docker/transport/unixconn.py", line 30, in connect
    sock.connect(self.unix_socket)
PermissionError: [Errno 13] Permission denied

urllib3.exceptions.ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

During handling of the above exception, another exception occurred:
requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied')1
1 resposta
solução!

Problema resolvido tem que adicionar o usuário ao grupo do docker com o seguinte comando

sudo usermod -aG docker $USER