Problema ao iniciar docker
$ docker-compose up -d nginx mysql
Traceback (most recent call last):
File "docker-compose", line 6, in <module>
File "compose\cli\main.py", line 68, in main
File "compose\cli\main.py", line 121, in perform_command
File "contextlib.py", line 35, in __exit__
File "compose\cli\errors.py", line 64, in handle_connection_errors
File "compose\cli\errors.py", line 78, in log_windows_pipe_error
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 11: ordinal not in range(128)
Failed to execute script docker-compose
Esse erro acima acontece quando dou o comando docker-compose up -d nginx mysql. o que está errado?
Olá, Miguel Jr!
Tudo bem?
Qual a versão do S.O.? Windows 10 Professional?
Quando roda o comando docker ps dá algum erro?
Pode que a unidade de disco não está compartilhada, para verificar isso clique com o botão auxiliar em cima do ícone e escolha a opção "Settings" (http://prntscr.com/hhhuav)
Na opção do menu "Shared Drivers" confira se a unidade está marcada, se não tiver marque (http://prntscr.com/hhhufo)
Após isso reinicie o Docker e tente novamente! =D
Aguardo o seu retorno.
Funcionou. agora me esta apresentando outro erro.
C:\docker\laradock (master)
λ docker-compose up -d nginx mysql
Starting laradock_mysql_1 ...
Starting laradock_applications_1 ...
Starting laradock_mysql_1
Starting laradock_applications_1 ... done
Starting laradock_workspace_1 ...
Starting laradock_workspace_1 ... done
Starting laradock_php-fpm_1 ...
Starting laradock_php-fpm_1 ... error
ERROR: for laradock_php-fpm_1 Cannot start service php-fpm: oci runtime error: container_linux.go:265: starting container process caused "process_linux.go:368: container init caused \"rootfs_linux.go:57: mounting \\\"/c/docker/laradock/php-fpm/php71.ini\\\" to rootfs \\\"/var/lib/docker/overlay2/ffbfa4a1fd2e1255e613c6f0d25501ab2ec57c19b56b179c129fcd51a60ccc75/merged\\\" at \\\"/var/lib/docker/overlay2/ffbfa4a1fd2e1255e613c6f0d25501ab2ec57c19b56b179c129fcd51a60ccc75/merged/usr/local/etc/php/php.ini\\\" caused \\\"not a directory\\\"\""
: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: for php-fpm Cannot start service php-fpm: oci runtime error: container_linux.go:265: starting container process caused "process_linux.go:368: container init caused \"rootfs_linux.go:57: mounting \\\"/c/docker/laradock/php-fpm/php71.ini\\\" to rootfs \\\"/var/lib/docker/overlay2/ffbfa4a1fd2e1255e613c6f0d25501ab2ec57c19b56b179c129fcd51a60ccc75/merged\\\" at \\\"/var/lib/docker/overlay2/ffbfa4a1fd2e1255e613c6f0d25501ab2ec57c19b56b179c129fcd51a60ccc75/merged/usr/local/etc/php/php.ini\\\" caused \\\"not a directory\\\"\""
: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: Encountered errors while bringing up the project.
C:\docker\laradock (master)
O que pode ser?
Oi Miguel Jr,
Já melhorou, pelo menos avançamos naquele erro anterior. :-)
Faz o seguinte, deleta as imagens que você já tem do Docker, pode ter algum problema de conflito de versões.
Como deletar imagens docker?
Para listar as imagens: docker images
Para deletar: docker rmi IMAGE_ID
Faz isso e me retorna.
Precisa estar logado para conseguir responder a este ticket!
Clique Aqui Para Entrar!