You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the ps command: $ docker container ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f715531cff67 dockerrails_app_development "bundle exec sidekiq" About an hour ago Up About an hour 3000/tcp docker-rails_worker_1 82c4d836acff dockerrails_app_development "docker/startup.sh" About an hour ago Up About an hour 0.0.0.0:32768->3000/tcp docker-rails_app_1 3ed2cd8cb8ca postgres:alpine "docker-entrypoint.s…" About an hour ago Up About an hour 5432/tcp docker-rails_db_1 86cd2e75c561 redis:5.0-alpine "docker-entrypoint.s…" About an hour ago Up About an hour 6379/tcp docker-rails_redis_1
docker-rails_app_1 log:
$ docker logs docker-rails_app_1 ... Tasks: TOP => db:setup => db:seed (See full trace by running task with --trace) Done! [903] Puma starting in cluster mode... [903] * Version 3.12.0 (ruby 2.5.3-p105), codename: Llamas in Pajamas [903] * Min threads: 5, max threads: 5 [903] * Environment: development [903] * Process workers: 2 [903] * Preloading application W, [2018-12-27T00:10:26.759679 #903] WARN -- Skylight: [SKYLIGHT] [3.1.2] Running Skylight in development mode. No data will be reported until you deploy your app. (To disable this message for all local apps, run skylight disable_dev_warning.) [903] * Listening on tcp://0.0.0.0:3000 [903] * Listening on unix:///tmp/run.sock [903] ! WARNING: Detected 1 Thread(s) started in app boot: [903] ! #<Thread:0x000055cc9d257c58@/usr/local/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:299 sleep> - /usr/local/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:301:in ``sleep' [903] Use Ctrl-C to stop [903] - Worker 0 (pid: 928) booted, phase: 0 [903] - Worker 1 (pid: 935) booted, phase: 0
And docker-rails_worker_1 log:
$ docker logs docker-rails_worker_1 2018-12-26T23:57:06.057Z 1 TID-gt06y6qop INFO: Booting Sidekiq 5.2.3 with redis options {:url=>"redis://redis:6379/0", :id=>"Sidekiq-server-PID-1"} 2018-12-26T23:57:06.267Z 1 TID-gt06y6qop INFO: Cron Jobs - add job with name: wikipedia W, [2018-12-26T23:57:08.073863 #1] WARN -- Skylight: [SKYLIGHT] [3.1.2] Running Skylight in development mode. No data will be reported until you deploy your app. (To disable this message for all local apps, run skylight disable_dev_warning.) 2018-12-26T23:57:25.116Z 1 TID-gt06y6qop INFO: Running in ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux-musl] 2018-12-26T23:57:25.116Z 1 TID-gt06y6qop INFO: See LICENSE and the LGPL-3.0 for licensing details. 2018-12-26T23:57:25.116Z 1 TID-gt06y6qop INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org 2018-12-26T23:57:25.121Z 1 TID-gt06y6qop INFO: Starting processing, hit Ctrl-C to stop
But refused to connect. $ telnet localhost 3000 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused
Any suggestions to solve the issue?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
The port localhost:3000 is available inside the container only. From outside you need to use the mapped port, in your case 32768 (see the output of docker ps):
~ $ telnet localhost 32768
Trying ::1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.1
HOST: localhost
I already did what the tutorial ask:
See the ps command:
$ docker container ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f715531cff67 dockerrails_app_development "bundle exec sidekiq" About an hour ago Up About an hour 3000/tcp docker-rails_worker_1 82c4d836acff dockerrails_app_development "docker/startup.sh" About an hour ago Up About an hour 0.0.0.0:32768->3000/tcp docker-rails_app_1 3ed2cd8cb8ca postgres:alpine "docker-entrypoint.s…" About an hour ago Up About an hour 5432/tcp docker-rails_db_1 86cd2e75c561 redis:5.0-alpine "docker-entrypoint.s…" About an hour ago Up About an hour 6379/tcp docker-rails_redis_1
docker-rails_app_1 log:
$ docker logs docker-rails_app_1
... Tasks: TOP => db:setup => db:seed (See full trace by running task with --trace) Done! [903] Puma starting in cluster mode... [903] * Version 3.12.0 (ruby 2.5.3-p105), codename: Llamas in Pajamas [903] * Min threads: 5, max threads: 5 [903] * Environment: development [903] * Process workers: 2 [903] * Preloading application W, [2018-12-27T00:10:26.759679 #903] WARN -- Skylight: [SKYLIGHT] [3.1.2] Running Skylight in development mode. No data will be reported until you deploy your app. (To disable this message for all local apps, run
skylight disable_dev_warning.) [903] * Listening on tcp://0.0.0.0:3000 [903] * Listening on unix:///tmp/run.sock [903] ! WARNING: Detected 1 Thread(s) started in app boot: [903] ! #<Thread:0x000055cc9d257c58@/usr/local/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:299 sleep> - /usr/local/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:301:in ``sleep' [903] Use Ctrl-C to stop [903] - Worker 0 (pid: 928) booted, phase: 0 [903] - Worker 1 (pid: 935) booted, phase: 0
And docker-rails_worker_1 log:
$ docker logs docker-rails_worker_1
2018-12-26T23:57:06.057Z 1 TID-gt06y6qop INFO: Booting Sidekiq 5.2.3 with redis options {:url=>"redis://redis:6379/0", :id=>"Sidekiq-server-PID-1"} 2018-12-26T23:57:06.267Z 1 TID-gt06y6qop INFO: Cron Jobs - add job with name: wikipedia W, [2018-12-26T23:57:08.073863 #1] WARN -- Skylight: [SKYLIGHT] [3.1.2] Running Skylight in development mode. No data will be reported until you deploy your app. (To disable this message for all local apps, run
skylight disable_dev_warning.) 2018-12-26T23:57:25.116Z 1 TID-gt06y6qop INFO: Running in ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux-musl] 2018-12-26T23:57:25.116Z 1 TID-gt06y6qop INFO: See LICENSE and the LGPL-3.0 for licensing details. 2018-12-26T23:57:25.116Z 1 TID-gt06y6qop INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org 2018-12-26T23:57:25.121Z 1 TID-gt06y6qop INFO: Starting processing, hit Ctrl-C to stop
But refused to connect.
$ telnet localhost 3000
Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused
Any suggestions to solve the issue?
Thanks in advance.
The text was updated successfully, but these errors were encountered: