https://rancher.com/ logo
#k3s
Title
# k3s
h

helpful-helmet-41924

03/01/2023, 11:19 PM
Hi… in the default installation of k3s, where is the public repository/images located ? Eg when i run “kubectl run nginx --image=nginx …“, where is k3s pulling the ‘nginx’ from ?
c

creamy-pencil-82913

03/01/2023, 11:53 PM
this isn’t k3s specific, but rather how container images are named by convention
if you don’t specify a registry, the default is
<http://docker.io|docker.io>
and for docker.io, if you don’t specify a repository in the registry, it defaults to
library
and the default tag is always
latest
so when you ask for
nginx
what you are really getting is
<http://index.docker.io/library/nginx:latest|index.docker.io/library/nginx:latest>
h

helpful-helmet-41924

03/02/2023, 1:56 AM
@creamy-pencil-82913 Thank you 👏
3 Views