Вот мой Dockerfile:
FROM openjdk
COPY . /java
WORKDIR /java
RUN javac Main.java
CMD ["java", "Main"]
Вот код Main.java:
package com.test;
class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
}
Пишу в терминале:
docker build .
Вот ошибка:
ERROR: error during connect: this error may indicate that the docker daemon is not running: Head "
http://%2F%2F.%2Fpipe%2Fdocker_engine/_ping": open //./pipe/docker_engine: The system cannot find the file specified.