docker-compose up をするとWindows named pipe error: (code: 109)がでてしまう

前提

docker+mysql+Ruby on railsでアプリ開発をしています。

docker-copose upをすると

web_1 | https://github.com/manfe/refile.git is not yet checked out. Run bundle install first.
Windows named pipe error: ▒p▒C▒v▒͏I▒▒▒▒▒܂▒▒▒▒B (code: 109)

というエラーメッセージが表示されてしまいます。

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

エラーメッセージ $ docker-compose up Creating network "sample_app_default" with the default driver Creating sample_app_db_1 ... Creating sample_app_db_1 ... done Creating sample_app_web_1 ... Creating sample_app_web_1 ... done Attaching to sample_app_db_1, sample_app_web_1 db_1 | 2022-12-17 07:54:32+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.30-1.el8 started. db_1 | 2022-12-17 07:54:33+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' db_1 | 2022-12-17 07:54:33+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.30-1.el8 started. db_1 | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock' db_1 | 2022-12-17T07:54:34.081739Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead. db_1 | 2022-12-17T07:54:34.093044Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.30) starting as process 1 db_1 | 2022-12-17T07:54:34.105508Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive db_1 | 2022-12-17T07:54:34.160439Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. web_1 | https://github.com/manfe/refile.git is not yet checked out. Run `bundle install` first. Windows named pipe error: ▒p▒C▒v▒͏I▒▒▒▒▒܂▒▒▒▒B (code: 109)

該当のソースコード

Gemfile

1source "https://rubygems.org" 2git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 4ruby "3.0.4" 5 6# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" 7gem "rails", "~> 7.0.4" 8 9# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails] 10gem "sprockets-rails" 11 12# Use mysql as the database for Active Record 13 gem "mysql2", "~> 0.4.10" 14 15# Use the Puma web server [https://github.com/puma/puma] 16gem "puma", "~> 5.0" 17 18# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails] 19gem "importmap-rails" 20 21# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev] 22gem "turbo-rails" 23 24# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev] 25gem "stimulus-rails" 26 27# Build JSON APIs with ease [https://github.com/rails/jbuilder] 28gem "jbuilder" 29 30# Use Redis adapter to run Action Cable in production 31# gem "redis", "~> 4.0" 32 33# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis] 34# gem "kredis" 35 36# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] 37# gem "bcrypt", "~> 3.1.7" 38 39# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 40gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] 41gem "device" 42gem "refile", require: "refile/rails", github: 'manfe/refile' 43gem "refile-mini_magick" 44gem "bulma-rails" 45 46# Reduces boot times through caching; required in config/boot.rb 47gem "bootsnap", require: false 48 49# Use Sass to process CSS 50# gem "sassc-rails" 51 52# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] 53# gem "image_processing", "~> 1.2" 54 55group :development, :test do 56 # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem 57 gem "debug", platforms: %i[ mri mingw x64_mingw ] 58end 59 60group :development do 61 # Use console on exceptions pages [https://github.com/rails/web-console] 62 gem "web-console" 63 64 # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler] 65 # gem "rack-mini-profiler" 66 67 # Speed up commands on slow machines / big apps [https://github.com/rails/spring] 68 # gem "spring" 69end 70 71group :test do 72 # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing] 73 gem "capybara" 74 gem "selenium-webdriver" 75 gem "webdrivers" 76end

Gemfile.lock

1 GIT 2 remote: https://github.com/manfe/refile.git 3 revision: 46b4178654e60bb5846b1423acf6d0740cdecc25 4 specs: 5 refile (0.6.2) 6 mime-types 7 rest-client (~> 2) 8 sinatra (~> 2.0.0.beta2) 9 10GEM 11 remote: https://rubygems.org/ 12 specs: 13 actioncable (7.0.4) 14 actionpack (= 7.0.4) 15 activesupport (= 7.0.4) 1617181920

dockercompose.yml

1version: '3' 2 3services: 4 db: 5 image: mysql:8.0.30 6 environment: 7 MYSQL_USER: root 8 MYSQL_ROOT_PASSWORD: passw0rd 9 ports: 10 - "3306:3306" 11 volumes: 12 - ./db/mysql/volumes:/var/lib/mysql 13 14 web: 15 build: . 16 command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'" 17 volumes: 18 - .:/myapp 19 - gem_data:/usr/local/bundle 20 ports: 21 - 3000:3000 22 depends_on: 23 - db 24 tty: true 25 stdin_open: true 26 27volumes: 28 gem_data: 29

試したこと

エラーメッセージに記載通り
bundle install は行い、問題なくできました。

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

ruby 3.0.4p208
Rails 7.0.4
Docker version 20.10.21, build baeda1f
Server version: 8.0.30 MySQL Community Server - GPL

コメントを投稿

0 コメント