Skip to content

Commit bcba3f3

Browse files
committed
Use docker.io as the default registry for Ruby images
The `registry.docker.com` registry isn't documented and have a delay when pulling images. The `docker.io` registry is the default registry for Docker images and is the one used by the Docker CLI.
1 parent 809409a commit bcba3f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

railties/lib/rails/generators/rails/app/templates/Dockerfile.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
1010
ARG RUBY_VERSION=<%= gem_ruby_version %>
11-
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
11+
FROM docker.io/library/ruby:$RUBY_VERSION-slim as base
1212

1313
# Rails app lives here
1414
WORKDIR /rails

railties/test/fixtures/Dockerfile.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
44
ARG RUBY_VERSION=3.2.2
5-
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
5+
FROM docker.io/library/ruby:$RUBY_VERSION-slim as base
66

77
# Rails app lives here
88
WORKDIR /rails

0 commit comments

Comments
 (0)