sles15sp2 Docker Image
I am trying to build a Docker image that is based on sle15:15.2 and I am encountering a problem that produces the following error:
Problem retrieving the repository index file for service 'container-suseconnect-zypp':
I am following this guide
My Dockerfile is as follows:
FROM registry.suse.com/suse/sle15:15.2 RUN zypper ref -s RUN zypper refs && zypper refresh RUN zypper -n in vim
host2-vm1:~ # docker build -t sles15sp2-test sles15sp2/ Sending build context to Docker daemon 28.38MB Step 1/4 : FROM registry.suse.com/suse/sle15:15.2 ---> f8606f88e4d8 Step 2/4 : RUN zypper ref -s ---> Running in 5d9c7eac019e Refreshing service 'container-suseconnect-zypp'. Warning: Skipping service 'container-suseconnect-zypp' because of the above error. All services have been refreshed. Problem retrieving the repository index file for service 'container-suseconnect-zypp': [container-suseconnect-zypp|file:/usr/lib/zypp/plugins/services/container-suseconnect-zypp] Warning: There are no enabled repositories defined. Use 'zypper addrepo' or 'zypper modifyrepo' commands to add or enable repositories. The command '/bin/sh -c zypper ref -s' returned a non-zero code: 6
I have double checked the license status of this host on https://scc.suse.com/subscriptions and it appears to be in OK.
Has anyone encountered and resolved this issue or have any suggestions on resources I can use?