Windows上でDockerの「docker-compose up -d」でエラー

実現したいこと

WindowsでDockerを動かせるようにする

前提

Dockerのインストールまで行ったのですが、「docker-compose up -d」でエラーが発生してしまいます。

発生している問題・エラーメッセージ

user@LAPTOP-I1BLPRNT:~/frekul/docker$ docker-compose up -d [+] Building 0.0s (1/2) [+] Building 0.2s (2/3) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 8.75kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s [+] Building 2.3s (4/5) => [internal] load build definition from Dockerfile 0.0s [+] Building 2.9s (6/41) [+] Building 3.0s (6/41) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 8.75kB 0.0s [+] Building 4.6s (11/41) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 8.75kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/amazonlinux:2 2.1s => CACHED [tex 1/4] FROM docker.io/library/amazonlinux:2@sha256:ad9b9135cd4eaa9f5a7b903b1cd72fef23027260c9aa84a7 0.0s => [internal] load build context 0.0s => => transferring context: 37B 0.0s => CACHED [ffmpeg 2/9] RUN echo /usr/local/lib > /etc/ld.so.conf.d/local.conf && ldconfig 0.0s => CANCELED [ffmpeg 3/9] RUN yum -y update && yum -y install autoconf automake bzip2 diffutils file gcc gcc-c++ 0.9s => CANCELED [ruby 2/4] RUN yum -y update && yum -y install gcc gcc-c++ git gzip make openssl-devel tar zlib-deve 1.8s => CANCELED [node 2/3] RUN yum -y update && yum -y install gzip tar && curl --silent --location https://rpm.node 2.4s => CANCELED [php 2/4] RUN amazon-linux-extras install epel && yum -y update && yum -y install compat-libtiff3 fo 1.0s => CANCELED [tex 2/4] RUN yum -y update && yum -y install gzip perl-Digest-MD5 tar && yum -y clean all 1.8s failed to solve: process "/bin/sh -c apt-get update && apt-get -y install locales-all && apt-get -y clean" did not complete successfully: exit code: 127

該当のソースコード

dockerfile FROM mysql:8.0 AS db RUN apt-get update && apt-get -y install locales-all && apt-get -y clean ENV LANG=ja_JP.UTF-8 LANGUAGE=ja_JP:ja LC_ALL=ja_JP.UTF-8

試したこと

エラーを見ていくとMysqlのインストール部分でつまずいていそうなのですが、調べてみて出てきた「-debianをつける」「apt-get を apt add」にするといった方法では特にエラーメッセージも変わらない状況です。

補足情報(FW/ツールのバージョンなど)

ここにより詳細な情報を記載してください。

コメントを投稿

0 コメント