LoginSignup
miky-no6
@miky-no6 (大竹 孝典)

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

Docker コンテナ 作成 laravel

解決したいこと

Docker の laravelのコンテナをビルドしたいが、できない。
イメージは作成できるが、seconud-laravelのコンテナが作成できない

自分で試したこと

Dockerを、再度インストールした。
・setting>Resources>
WSL integration>ubuntu ONにした。

スクリーンショット 2023-11-17 114131.png
スクリーンショット 2023-11-17 114121.png
スクリーンショット 2023-11-17 114232.png
スクリーンショット 2023-11-17 114137.png

自分で試したこと

Dockerを、再度インストールした。
・setting>Resources>
WSL integration>ubuntu ONにした。

0

2Answer

できないとはどのような状態でしょうか
どのようなコマンドを入力してどのようなエラーが出たのかもう少し詳細に記述してもらえないでしょうか?

0

Comments

  1. @miky-no6

    Questioner

    docker-compose build --no-cacheです。

  2. 最初のコメントにも記載しましたがそのコマンドを入力してどのようなじょうたいになるのでしょうか?

  3. @miky-no6

    Questioner

    エラー文がこれです。

    2023/11/20 09:51:15.359511 system_key.go:129: cannot determine nfs usage in generateSystemKey: cannot parse mountinfo: incorrect number of tail fields, expected 3 but found 4
    2023/11/20 09:51:15.377780 cmd_run.go:1046: WARNING: cannot create user data directory: cannot determine SELinux status: failed to obtain SELinux mount path: incorrect number of tail fields, expected 3 but found 4
    [+] Building 0.0s (0/0)
    http: invalid Host header

Dockerfile,docker-compose.ymlを開示できるなら、掲載して下さい。

docker compose は上記2ファイルでコンテナがビルドできます。

cd project
vi Dockerfile
vi docker-compose.yml
docker compose build
docker compose up -d

この2行でビルドと実行ができます。

0

Your answer might help someone💌