Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Erro com docker no Windows

C:\Users\Henrique - Raquel\Documents\Spring Boot Rest\projeto-inicial\forum>docker build -t alura/forum .
Sending build context to Docker daemon  51.28MB
Step 1/6 : FROM openjdk:8-jdk-alpine
 ---> a3562aa0b991
Step 2/6 : RUN addgroup -S spring && adduser -S spring -G spring
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (windows/amd64) and no specific platform was requested
 ---> Running in d298610c48da
The command '/bin/sh -c addgroup -S spring && adduser -S spring -G spring' returned a non-zero code: 4294967295: failed to shutdown container: container d298610c48da93a2b4d094312ae561f1d96cfcdda5730eb3865c990c895fde8e encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110): subsequent terminate failed container d298610c48da93a2b4d094312ae561f1d96cfcdda5730eb3865c990c895fde8e encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110)

Estou com esse erro, ajuda pfv.

2 respostas
solução!

Oi Henrique

Clica no ícone do Docker no context menu do seu Windows Clique em "Switch to Window/Linux Container"

Obrigado pela ajuda, tive que reinstalar o docker pois não tinha essa opção, mas depois de trocar para o linux funcionou.