Erro com comando docker-compose up
Como posso resolver o errro abaixo?
Traceback (most recent call last):
File "docker-compose", line 6, in
File "compose\cli\main.py", line 72, in main
File "compose\cli\main.py", line 128, in perform_command
File "compose\cli\main.py", line 1078, in up
File "compose\cli\main.py", line 1074, in up
Continuação do erro:
File "compose\project.py", line 548, in up
File "compose\service.py", line 367, in ensure_image_exists
File "compose\service.py", line 1106, in build
File "site-packages\docker\api\build.py", line 261, in build
File "site-packages\docker\api\build.py", line 308, in _set_auth_headers
File "site-packages\docker\auth.py", line 302, in get_all_credentials
File "site-packages\docker\credentials\store.py", line 71, in list
Podem me ajudar?
Olá, Renato!
Tudo bem?
Qual comando exatamente você rodou?
docker-compose up -d nginx mysql
Qual a versão do seu S.O.? Ele está atualizado?
Qual a versão do Docker?
--------
Se estiver no Windows e perdendo muito tempo, usa o Laragon: https://www.youtube.com/watch?v=KBimnW4WeBg
Olá! Tudo bem!
Isso! O mesmo tipo de erro ocorre ao subir qualquer container. Por exemplo pelo comando docker-compose up -d nginx mysql
Meu SO é o Windows 10 pro (atualizado). Versao Docker 19.03.12 e docker-compe 1.26.2. Pode me ajudar resolver isso no Windows?
Usa o laragon para você não ficar perdendo muito tempo: https://www.youtube.com/watch?v=KBimnW4WeBg
Enquanto isso resolvemos o Docker.
Tem um pronto do erro? https://imgur.com/upload
Consegui seguir no curso instalando o laragon. Ao chegar no módulo 6 de BD tentei rodar novamente o comando docker-compose up -d mysql phpmyadmin e ocorre o seguinte erro: https://imgur.com/a/YakRKBe
O mesmo ocorre para outros containers nginx, redis, etc...
Alguma sugestão?
Normalmente quando o erro é por conta do container de banco de dados, basta deletar os arquivos (~/.laradock/data/) e tudo volta ao normal.
Mas, pela mensagem de erro do se caso, parece ser algo com o compartilhamento de disco. Nas configurações do Docker, no menu "Resources" > "File Sharing", como está? http://prntscr.com/ttdbui
Ola prof. estou com a versao atualizada do windows pro e tbm a do docker 2.5.0.1
estou tendo o seguinte erro
Building mysql
Traceback (most recent call last):
File "site-packages\docker\credentials\store.py", line 80, in _execute
File "subprocess.py", line 395, in check_output
File "subprocess.py", line 487, in run
subprocess.CalledProcessError: Command '['C:\\Program Files\\Docker\\Docker\\resources\\bin\\docker-credential-desktop.EXE', 'list']' returned non-zero exit status 1.
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 67, in main
File "compose\cli\main.py", line 126, in perform_command
File "compose\cli\main.py", line 1070, in up
File "compose\cli\main.py", line 1066, in up
File "compose\project.py", line 615, in up
File "compose\service.py", line 362, in ensure_image_exists
File "compose\service.py", line 1125, in build
File "site-packages\docker\api\build.py", line 261, in build
File "site-packages\docker\api\build.py", line 308, in _set_auth_headers
File "site-packages\docker\auth.py", line 302, in get_all_credentials
File "site-packages\docker\credentials\store.py", line 71, in list
File "site-packages\docker\credentials\store.py", line 93, in _execute
docker.credentials.errors.StoreError: Credentials store docker-credential-desktop exited with "error listing credentials - err: exit status 1, out: `Elemento não encontrado.`".
[9668] Failed to execute script docker-compose
Obs: Não tem a opção de mudar Switch to linux nessa versao do docker, e tbm não encontrei a opçao de compartilhar o disco C:
fico no aguarde para seguir o curso, ja instalei o laragon , mas quero tentar fazer o docker funcionar para partir pro curso laravel 8. Obrigado.
Olá, Marcio!
Tudo bem?
Abre uma nova thread (ticket) para discutirmos a sua dúvida.
No aguardo.
meu erro aqui é esse
λ docker-compose up -d nginx mysql
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 439, in send
File "urllib3\connectionpool.py", line 670, in urlopen
File "urllib3\connectionpool.py", line 392, in _make_request
File "http\client.py", line 1255, in request
File "http\client.py", line 1301, in _send_request
File "http\client.py", line 1250, in endheaders
File "http\client.py", line 1010, in _send_output
File "http\client.py", line 950, in send
File "docker\transport\npipeconn.py", line 32, in connect
File "docker\transport\npipesocket.py", line 23, in wrapped
File "docker\transport\npipesocket.py", line 72, in connect
File "docker\transport\npipesocket.py", line 52, in connect
pywintypes.error: (2, 'CreateFile', 'O sistema não pode encontrar o arquivo especificado.')
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 60, in project_from_options
File "compose\cli\command.py", line 152, in get_project
File "compose\cli\docker_client.py", line 41, 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 221, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', 'O sistema não pode encontrar o arquivo especificado.')
[6728] Failed to execute script docker-compose
Olá, André!
Tudo bem?
Abre uma nova thread (ticket) para discutirmos a sua dúvida.
No aguardo.
Precisa estar logado para conseguir responder a este ticket!
Clique Aqui Para Entrar!