我正在使用rails,sidekiq和docker.
我的docker-compose.yml文件
sidekiq: build: . command: bundle exec sidekiq -C config/sidekiq.yml links: - db - redis
:pidfile: ./tmp/pids/sidekiq.pid :logfile: ./log/sidekiq.log :queues: - default
运行docker-compose后,sidekiq服务无法正常启动.
sidekiq_1 | No such file or directory @ rb_sysopen - /testapp/tmp/pids/sidekiq.pid sidekiq_1 | /usr/local/bundle/gems/sidekiq-3.5.3/lib/sidekiq/cli.rb:365:in `initialize' sidekiq_1 | /usr/local/bundle/gems/sidekiq-3.5.3/lib/sidekiq/cli.rb:365:in `open' sidekiq_1 | /usr/local/bundle/gems/sidekiq-3.5.3/lib/sidekiq/cli.rb:365:in `write_pid' sidekiq_1 | /usr/local/bundle/gems/sidekiq-3.5.3/lib/sidekiq/cli.rb:42:in `parse' sidekiq_1 | /usr/local/bundle/gems/sidekiq-3.5.3/bin/sidekiq:12:in `<top (required)>' sidekiq_1 | /usr/local/bundle/bin/sidekiq:16:in `load' sidekiq_1 | /usr/local/bundle/bin/sidekiq:16:in `<main>' testapp_sidekiq_1 exited with code 1
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。