docker build -t dockerdomo ./
コマンドをうち、buildしようとしたのですが、
このようにエラーが出ます。
完全に初心者なので何を解決すれば良いのかわかりません。
原因らしきものがわかる方がいたらご教授お願いします。
参考動画
% docker build -t dockerdomo ./dockerfile [+] Building 0.0s (2/2) FINISHED => ERROR [internal] load .dockerignore 0.0s => => transferring context: 33B 0.0s => ERROR [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 33B 0.0s------ > [internal] load .dockerignore:------ ------ > [internal] load build definition from Dockerfile: ------failed to solve with frontend dockerfile.v0: failed to resolve dockerfile: failed to build LLB: error from sender: dockerfile is not a directory % docker build -t dockerdomo ./ [+] Building 0.0s (2/2) FINISHED => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2B 0.0s failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount474399907/Dockerfile: no such file or directory
docker info Client: Debug Mode: false Plugins: app: Docker Application (Docker Inc., v0.8.0) buildx: Build with BuildKit (Docker Inc., v0.3.1-tp-docker) scan: Docker Scan (Docker Inc., v0.3.3) Server: Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 2 Server Version: 19.03.13-beta2 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd init version: fec3683 Security Options: seccomp Profile: default Kernel Version: 4.19.76-linuxkit Operating System: Docker Desktop OSType: linux Architecture: x86_64 CPUs: 6 Total Memory: 1.944GiB Name: docker-desktop ID: HJPY:SIQY:CK3P:ABJP:Y2UP:2RJB:Z6QU:VGRH:XHUR:KTB7:KPUO:WNVS Docker Root Dir: /var/lib/docker Debug Mode: true File Descriptors: 39 Goroutines: 47 System Time: 2020-09-18T08:51:50.2733407Z EventsListeners: 3 HTTP Proxy: gateway.docker.internal:3128 HTTPS Proxy: gateway.docker.internal:3129 Registry: https://index.docker.io/v1/ Labels: Experimental: true Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false Product License: Community Engine
dockerfile 書き換えました 最新です FROM ruby:2.6.5 RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list RUN apt-get update -qq && \ apt-get install -y build-essential \ libpq-dev \ nodejs WORKDIR /Books/ COPY Gemfile ./Gemfile COPY Gemfile.lock ./Gemfile.lock RUN gem install bundler RUN bundle install COPY . /Books/ # waitライブラリの追加 ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.6.0/wait /wait # ライブラリの権限変更 RUN chmod +x /wait # Add a script to be executed every time the container starts. COPY entrypoint.sh /usr/bin/ RUN chmod +x /usr/bin/entrypoint.sh ENTRYPOINT ["entrypoint.sh"] EXPOSE 3000 # Start the main process. CMD ["rails", "server", "-b", "0.0.0.0"]