error in container-suseconnect-zypp

The novel I want to install a package with a docker file I encounter this error

Step 2/2 : RUN zypper in vim
—> Running in baf8edcb0f89
Refreshing service ‘container-suseconnect-zypp’.
Warning: Skipping service ‘container-suseconnect-zypp’ because of the above error.
Loading repository data…
Warning: No repositories defined. Operating only with the installed resolvables. Nothing can be installed.
Reading installed packages…
Problem retrieving the repository index file for service ‘container-suseconnect-zypp’:
[container-suseconnect-zypp|file:/usr/lib/zypp/plugins/services/container-suseconnect-zypp]
‘vim’ not found in package names. Trying capabilities.
No provider of ‘vim’ found.
Resolving package dependencies…

Nothing to do.
The command ‘/bin/sh -c zypper in vim’ returned a non-zero code: 104

Hi
There are no repositories defined? can you show the output from zypper lr. The system is registered? Not going through a proxy or local SMT/RMT server?

| Alias | Name | Enabled | GPG Check | Refresh

—±------------------------------------------------------------------------------------------------±----------------------------------------------------------------------------±--------±----------±-------
1 | Basesystem_Module_15_SP1_x86_64:SLE-Module-Basesystem15-SP1-Debuginfo-Pool | SLE-Module-Basesystem15-SP1-Debuginfo-Pool | No | ---- | ----
2 | Basesystem_Module_15_SP1_x86_64:SLE-Module-Basesystem15-SP1-Debuginfo-Updates | SLE-Module-Basesystem15-SP1-Debuginfo-Updates | No | ---- | ----
3 | Basesystem_Module_15_SP1_x86_64:SLE-Module-Basesystem15-SP1-Pool | SLE-Module-Basesystem15-SP1-Pool | Yes | (r ) Yes | No
4 | Basesystem_Module_15_SP1_x86_64:SLE-Module-Basesystem15-SP1-Source-Pool | SLE-Module-Basesystem15-SP1-Source-Pool | No | ---- | ----
5 | Basesystem_Module_15_SP1_x86_64:SLE-Module-Basesystem15-SP1-Updates | SLE-Module-Basesystem15-SP1-Updates | Yes | (r ) Yes | Yes
6 | Containers_Module_15_SP1_x86_64:SLE-Module-Containers15-SP1-Debuginfo-Pool | SLE-Module-Containers15-SP1-Debuginfo-Pool | No | ---- | ----
7 | Containers_Module_15_SP1_x86_64:SLE-Module-Containers15-SP1-Debuginfo-Updates | SLE-Module-Containers15-SP1-Debuginfo-Updates | No | ---- | ----
8 | Containers_Module_15_SP1_x86_64:SLE-Module-Containers15-SP1-Pool | SLE-Module-Containers15-SP1-Pool | Yes | (r ) Yes | No
9 | Containers_Module_15_SP1_x86_64:SLE-Module-Containers15-SP1-Source-Pool | SLE-Module-Containers15-SP1-Source-Pool | No | ---- | ----
10 | Containers_Module_15_SP1_x86_64:SLE-Module-Containers15-SP1-Updates | SLE-Module-Containers15-SP1-Updates | Yes | (r ) Yes | Yes
11 | SLES15-SP1-15.1-0 | SLES15-SP1-15.1-0 | No | ---- | ----
12 | SUSE_Linux_Enterprise_Server_15_SP1_x86_64:SLE-Product-SLES15-SP1-Debuginfo-Pool | SLE-Product-SLES15-SP1-Debuginfo-Pool | No | ---- | ----
13 | SUSE_Linux_Enterprise_Server_15_SP1_x86_64:SLE-Product-SLES15-SP1-Debuginfo-Updates | SLE-Product-SLES15-SP1-Debuginfo-Updates | No | ---- | ----
14 | SUSE_Linux_Enterprise_Server_15_SP1_x86_64:SLE-Product-SLES15-SP1-Pool | SLE-Product-SLES15-SP1-Pool | Yes | (r ) Yes | No
15 | SUSE_Linux_Enterprise_Server_15_SP1_x86_64:SLE-Product-SLES15-SP1-Source-Pool | SLE-Product-SLES15-SP1-Source-Pool | No | ---- | ----
16 | SUSE_Linux_Enterprise_Server_15_SP1_x86_64:SLE-Product-SLES15-SP1-Updates | SLE-Product-SLES15-SP1-Updates | Yes | (r ) Yes | Yes
17 | Server_Applications_Module_15_SP1_x86_64:SLE-Module-Server-Applications15-SP1-Debuginfo-Pool | SLE-Module-Server-Applications15-SP1-Debuginfo-Pool | No | ---- | ----
18 | Server_Applications_Module_15_SP1_x86_64:SLE-Module-Server-Applications15-SP1-Debuginfo-Updates | SLE-Module-Server-Applications15-SP1-Debuginfo-Updates | No | ---- | ----
19 | Server_Applications_Module_15_SP1_x86_64:SLE-Module-Server-Applications15-SP1-Pool | SLE-Module-Server-Applications15-SP1-Pool | Yes | (r ) Yes | No
20 | Server_Applications_Module_15_SP1_x86_64:SLE-Module-Server-Applications15-SP1-Source-Pool | SLE-Module-Server-Applications15-SP1-Source-Pool | No | ---- | ----
21 | Server_Applications_Module_15_SP1_x86_64:SLE-Module-Server-Applications15-SP1-Updates | SLE-Module-Server-Applications15-SP1-Updates | Yes | (r ) Yes | Yes
22 | container-suseconnect-zypp:SLE-Module-Basesystem15-SP1-Debuginfo-Pool | SLE-Module-Basesystem15-SP1-Debuginfo-Pool for sle-15-x86_64 | No | ---- | ----
23 | container-suseconnect-zypp:SLE-Module-Basesystem15-SP1-Debuginfo-Updates | SLE-Module-Basesystem15-SP1-Debuginfo-Updates for sle-15-x86_64 | No | ---- | ----
24 | container-suseconnect-zypp:SLE-Module-Basesystem15-SP1-Pool | SLE-Module-Basesystem15-SP1-Pool for sle-15-x86_64 | Yes | (r ) Yes | No
25 | container-suseconnect-zypp:SLE-Module-Basesystem15-SP1-Source-Pool | SLE-Module-Basesystem15-SP1-Source-Pool for sle-15-x86_64 | No | ---- | ----
26 | container-suseconnect-zypp:SLE-Module-Basesystem15-SP1-Updates | SLE-Module-Basesystem15-SP1-Updates for sle-15-x86_64 | Yes | (r ) Yes | Yes
27 | container-suseconnect-zypp:SLE-Module-Containers15-SP1-Debuginfo-Pool | SLE-Module-Containers15-

Hi
So what are the URL’s for repositories 24 and 26, these should not be needed as your using repo’s 3 and 5 for this? I would disable and then force a refresh and try again to install vim…

zypper mr -dF 24 26
zypper ref -f
zypper in vim

The system is registered and I did this too, but I still see this error

Hi
Just that it can’t find vim? The package vim is in Basesystem Module 15 SP1 repository.

For now, I just want this package. I read somewhere from your site that when the host is registered, an RMT service should be set up.
What do I need to do to get started?

I want this package in my dock file so I can customize the image of two

zypper repos --show-enabled-only
Refreshing service ‘container-suseconnect-zypp’.
Repository priorities are without effect. All enabled repositories share the same priority.

| Alias | Name | Enabled | GPG Check | Refresh

—±--------------------------------------------------------------------------------------±------------------------------------------------------------------±--------±----------±-------
3 | Basesystem_Module_15_SP1_x86_64:SLE-Module-Basesystem15-SP1-Pool | SLE-Module-Basesystem15-SP1-Pool | Yes | (r ) Yes | No
5 | Basesystem_Module_15_SP1_x86_64:SLE-Module-Basesystem15-SP1-Updates | SLE-Module-Basesystem15-SP1-Updates | Yes | (r ) Yes | Yes
9 | SUSE_Linux_Enterprise_Server_15_SP1_x86_64:SLE-Product-SLES15-SP1-Pool | SLE-Product-SLES15-SP1-Pool | Yes | (r ) Yes | No
11 | SUSE_Linux_Enterprise_Server_15_SP1_x86_64:SLE-Product-SLES15-SP1-Updates | SLE-Product-SLES15-SP1-Updates | Yes | (r ) Yes | Yes
14 | Server_Applications_Module_15_SP1_x86_64:SLE-Module-Server-Applications15-SP1-Pool | SLE-Module-Server-Applications15-SP1-Pool | Yes | (r ) Yes | No
16 | Server_Applications_Module_15_SP1_x86_64:SLE-Module-Server-Applications15-SP1-Updates | SLE-Module-Server-Applications15-SP1-Updates | Yes | (r ) Yes | Yes
19 | container-suseconnect-zypp:SLE-Module-Basesystem15-SP1-Pool | SLE-Module-Basesystem15-SP1-Pool for sle-15-x86_64 | Yes | (r ) Yes | No
21 | container-suseconnect-zypp:SLE-Module-Basesystem15-SP1-Updates | SLE-Module-Basesystem15-SP1-Updates for sle-15-x86_64 | Yes | (r ) Yes | Yes
24 | container-suseconnect-zypp:SLE-Module-Containers15-SP1-Pool | SLE-Module-Containers15-SP1-Pool for sle-15-x86_64 | Yes | (r ) Yes | No
26 | container-suseconnect-zypp:SLE-Module-Containers15-SP1-Updates | SLE-Module-Containers15-SP1-Updates for sle-15-x86_64 | Yes | (r ) Yes | Yes
29 | container-suseconnect-zypp:SLE-Module-Packagehub-Subpackages15-SP1-Pool | SLE-Module-Packagehub-Subpackages15-SP1-Pool for sle-15-x86_64 | Yes | (r ) Yes | No
31 | container-suseconnect-zypp:SLE-Module-Packagehub-Subpackages15-SP1-Updates | SLE-Module-Packagehub-Subpackages15-SP1-Updates for sle-15-x86_64 | Yes | (r ) Yes | Yes
34 | container-suseconnect-zypp:SLE-Module-Server-Applications15-SP1-Pool | SLE-Module-Server-Applications15-SP1-Pool for sle-15-x86_64 | Yes | (r ) Yes | No
36 | container-suseconnect-zypp:SLE-Module-Server-Applications15-SP1-Updates | SLE-Module-Server-Applications15-SP1-Updates for sle-15-x86_64 | Yes | (r ) Yes | Yes
39 | container-suseconnect-zypp:SLE-Product-SLES15-SP1-Pool | SLE-Product-SLES15-SP1-Pool for sle-15-x86_64 | Yes | (r ) Yes | No
41 | container-suseconnect-zypp:SLE-Product-SLES15-SP1-Updates | SLE-Product-SLES15-SP1-Updates for sle-15-x86_64 | Yes | (r ) Yes | Yes
43 | container-suseconnect-zypp:SUSE-PackageHub-15-SP1-Backports-Pool | SUSE-PackageHub-15-SP1-Backports-Pool for sle-15-x86_64 | Yes | (r ) Yes | No
44 | container-suseconnect-zypp:SUSE-PackageHub-15-SP1-Pool | SUSE-PackageHub-15-SP1-Pool for sle-15-x86_64 | Yes | (r ) Yes | No

Hi
Well you can just download the packages iso image and use that locally, or can grab just the package via the download option at SCC? An RMT server is a complete new system in your network, is that what you want?

173/5000
I installed Docker over the Internet and now I wanted to create an image using Dockerfile, but I got this error.
Dockerfile content is the same thing you put on your site

Hi
Are you following this documentation? https://documentation.suse.com/sles/15-SP1/html/SLES-all/book-sles-docker.html

my Docker file
FROM registry.suse.com/suse/sle15
RUN zypper ref -s
RUN zypper -n in vim

Hi
So I setup a test system SLES 15 SP1;

My repositories added during install;

 8 | Containers_Module_15_SP1_x86_64:SLE-Module-Containers15-SP1-Pool                        | SLE-Module-Containers15-SP1-Pool              | Yes     | (r ) Yes  | No
10 | Containers_Module_15_SP1_x86_64:SLE-Module-Containers15-SP1-Updates                     | SLE-Module-Containers15-SP1-Updates           | Yes     | (r ) Yes  | Yes

The above are different that what you posted, how did you add? Like this SUSEConnect -p sle-module-containers/15/x86_64 -r ''?

My DockerFile;

FROM registry.suse.com/suse/sles12sp4

RUN zypper ref -s
RUN zypper -n in vim

Docker build;

docker build .
~/docker_images> docker build .
Sending build context to Docker daemon  2.048kB
Step 1/3 : FROM registry.suse.com/suse/sles12sp4
latest: Pulling from suse/sles12sp4
6c9534a7a804: Pull complete 
Digest: sha256:7504649ba71f61492c309ccada877a47ea11272b8658a9ad52923e8d17204628
Status: Downloaded newer image for registry.suse.com/suse/sles12sp4:latest
 ---> f49baa2c4c5f
Step 2/3 : RUN zypper ref -s
 ---> Running in 0502767b9116
Refreshing service 'container-suseconnect-zypp'.
Adding repository 'SLES12-SP4-Debuginfo-Pool for sle-12-x86_64' [......done]
Adding repository 'SLES12-SP4-Debuginfo-Updates for sle-12-x86_64' [......done]
Adding repository 'SLES12-SP4-Pool for sle-12-x86_64' [......done]
Adding repository 'SLES12-SP4-Source-Pool for sle-12-x86_64' [......done]
Adding repository 'SLES12-SP4-Updates for sle-12-x86_64' [......done]
All services have been refreshed.
Retrieving repository 'SLES12-SP4-Pool for sle-12-x86_64' metadata [....done]
Building repository 'SLES12-SP4-Pool for sle-12-x86_64' cache [....done]
Retrieving repository 'SLES12-SP4-Updates for sle-12-x86_64' metadata [........done]
Building repository 'SLES12-SP4-Updates for sle-12-x86_64' cache [....done]
All repositories have been refreshed.
Removing intermediate container 0502767b9116
 ---> acf5376186f8
Step 3/3 : RUN zypper -n in vim
 ---> Running in f5edb94e37c0
Refreshing service 'container-suseconnect-zypp'.
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 4 NEW packages are going to be installed:
  libdb-4_8 libgdbm4 perl vim

4 new packages to install.
Overall download size: 8.2 MiB. Already cached: 0 B. After the operation, additional 43.1 MiB will be used.
Continue? [y/n/...? shows all options] (y): y
Retrieving package libdb-4_8-4.8.30-29.6.x86_64 (1/4), 668.2 KiB (  3.1 MiB unpacked)
Retrieving: libdb-4_8-4.8.30-29.6.x86_64.rpm [done]
Retrieving package libgdbm4-1.10-9.70.x86_64 (2/4),  50.9 KiB (155.4 KiB unpacked)
Retrieving: libgdbm4-1.10-9.70.x86_64.rpm [.done]
Retrieving package perl-5.18.2-12.23.1.x86_64 (3/4),   6.3 MiB ( 37.3 MiB unpacked)
Retrieving: perl-5.18.2-12.23.1.x86_64.rpm [.done (352.0 KiB/s)]
Retrieving package vim-7.4.326-17.6.1.x86_64 (4/4),   1.2 MiB (  2.6 MiB unpacked)
Retrieving: vim-7.4.326-17.6.1.x86_64.rpm [done]

Checking for file conflicts: [.......done]
(1/4) Installing: libdb-4_8-4.8.30-29.6.x86_64 [............done]
(2/4) Installing: libgdbm4-1.10-9.70.x86_64 [........done]
(3/4) Installing: perl-5.18.2-12.23.1.x86_64 [............done]
(4/4) Installing: vim-7.4.326-17.6.1.x86_64 [............done]
Removing intermediate container f5edb94e37c0
 ---> c2d9c265d1d6
Successfully built c2d9c265d1d6