Container basics - Docker

Hi Guys … I know this is basic but I am struggling with it. My host is OpenSUSE Leap 15.1. We develop a cross platform product and have OpenSUSE Leap 15.1, Centos7/8, RedHat7/8, Ubuntu18.04. I wanted to test SLES 15 SP1 but my host is OpenSUSE not SLES. Can I actually build an SLES container using OpenSUSE as a host?
This is my error when running a very basic Dockerfile
Problem retrieving the repository index file for service ‘container-suseconnect-zypp’:
[container-suseconnect-zypp|file:/usr/lib/zypp/plugins/services/container-suseconnect-zypp]

Dockerfile
FROM registry.suse.com/suse/sle15:15.1
SHELL ["/bin/bash", “-c”]
RUN zypper refs \
&& zypper refresh \
&& zypper up -y \

Hey, @gpepus I’m asking around internally. I’ve only used a SLE host with my builds so don’t know the answer myself

The containers normally pull the repo information from the docker host but it is possible to pass in the required info and have the container pull what it needs. Here is a link that explains how to do it on non SLES systems.
https://github.com/SUSE/container-suseconnect#building-images-on-non-sle-distributions