Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker compose での環境構築時にdbのコンテナでエラーが発生したため修正 #810

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emoshu-masaki-goto
Copy link

修正背景

ローカルでtask upを実行して各コンテナを起動しようとしたところ、dbのコンテナにて以下のエラーが発生しました。

❯ task up
task: [up] docker compose -f compose-local.yml up -d
[+] Running 5/5
 ✔ Network development_default          Created                                                                                                                                                                0.0s 
 ✘ Container development-db-1           Error                                                                                                                                                                  0.8s 
 ✔ Container development-paymentmock-1  Started                                                                                                                                                                0.3s 
 ✔ Container development-matcher-1      Started                                                                                                                                                                0.3s 
 ✔ Container development-waiter-1       Created                                                                                                                                                                0.0s 
dependency failed to start: container development-db-1 exited (1)
task: Failed to run task "up": exit status 1

事象を確認した環境

  • PC: MacBook Pro (M3)

  • OSバージョン: Sequoia 15.2

  • 言語等の各種バージョン

    • Docker
    ❯ docker version
    Client:
     Version:           27.4.0
     API version:       1.47
     Go version:        go1.22.10
     Git commit:        bde2b89
     Built:             Sat Dec  7 10:35:43 2024
     OS/Arch:           darwin/arm64
     Context:           desktop-linux
    
    Server: Docker Desktop 4.37.2 (179585)
     Engine:
      Version:          27.4.0
      API version:      1.47 (minimum version 1.24)
      Go version:       go1.22.10
      Git commit:       92a8393
      Built:            Sat Dec  7 10:38:33 2024
      OS/Arch:          linux/arm64
      Experimental:     false
     containerd:
      Version:          1.7.21
      GitCommit:        472731909fa34bd7bc9c087e4c27943f9835f111
     runc:
      Version:          1.1.13
      GitCommit:        v1.1.13-0-g58aa920
     docker-init:
      Version:          0.19.0
      GitCommit:        de40ad0
    
    • Task
    ❯ task --version
    Task version: v3.41.0 (h1:giUddhe0XZLbEWIQ/MuTPipR9ek+teulIA5xf/2IHXg=)
    
    • golang
    ❯ go version
    go version go1.23.3 darwin/arm64
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant