https://rancher.com/ logo
Title
m

miniature-zebra-6218

11/03/2022, 5:50 PM
We have deployed Rancher as a docker container in single-server mode. Can we launch existing docker images that use existing docker volumes ? Looks like the only types of volumes are of type Kubernetes. Currently, we are running images directly on the commandline (
docker run ... -v ...
). How can that be done in a K8S deployment ?
c

creamy-pencil-82913

11/03/2022, 5:52 PM
the rancher/rancher image isn’t supported for anything except for dev/eval use. Rancher is also not meant to be used to manage standalone containers, it is just a Kubernetes management tool.
m

miniature-zebra-6218

11/03/2022, 5:55 PM
Thank you. I meant to deploy a container in K8S via Rancher just like we do on the commandline with docker run. I'll look for info on K8S w/r to existing docker artifacts.
c

creamy-pencil-82913

11/03/2022, 5:56 PM
that would be a pod then. Yes, you can create pods.
m

miniature-zebra-6218

11/03/2022, 5:59 PM
I know. It's just that apparently existing docker artifacts on the host do not show up. Maybe that is due to Rancher running in docker itself.
c

creamy-pencil-82913

11/03/2022, 6:08 PM
if you’re using the rancher/rancher image, it is actually running a full K3s cluster using containerd, inside Docker. That cluster doesn’t use docker and isn’t aware of it whatsoever. Honestly I think what you are trying to do probably matches Rancher Desktop better than Rancher.
m

miniature-zebra-6218

11/03/2022, 6:28 PM
I use Rancher Desktop on my personal laptop and indeed I can see my local Docker artifacts. I was just trying to deploy a K8S service using a docker image on the host where the Rancher docker container we're testing is running. On the one hand we run the image direclty with Rancher; on the other we launch that same image in Rancher e.g. on another port. I'll dig deeper. Thank you.
c

creamy-pencil-82913

11/03/2022, 6:31 PM
Rancher Desktop jumps through a bunch of hoops to make that easy for you. Once you move into deploying stuff to a full Kubernetes cluster (in particular one that doesn’t use Docker as the container runtime) you really should start making use of a private registry.
m

miniature-zebra-6218

11/03/2022, 6:38 PM
Right. Thank you.