# Development packages in Docker container

**URL:** <https://forums.suse.com/t/development-packages-in-docker-container/30663>\
**Category:** SLES Virtualization\
**Created:** [December 12, 2017, 11:05pm UTC](https://forums.suse.com/t/development-packages-in-docker-container/30663 "2017-12-12T23:05:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MadPipe](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/madpipe/32/1427_2.png) [@MadPipe](https://forums.suse.com/u/MadPipe)\
**Post date:** [December 12, 2017, 11:05pm UTC](https://forums.suse.com/t/development-packages-in-docker-container/30663/1 "2017-12-12T23:05:52Z")

</div>

Hello all,

I’m running Docker on a SLES 12SP3 machine. The machine is registered with SUSEConnect, and has the Containers module installed.

When running a container from the Docker image for SLES 11SP4, I can’t find via zypper many of the packages that I find on the host or on other SLES 11SP4 machines.

For example, one package that I can’t find is zlib-devel. I need that and a few others in order to compile the latest python.

The repos I have inside the contaier:

```auto
bash-3.2# zypper repos
Refreshing service 'container-suseconnect'.
Adding repository 'SLE11-Public-Cloud-Module for sle-11-x86_64' [done]
Adding repository 'SLE11-SP4-Debuginfo-Pool for sle-11-x86_64' [done]
Adding repository 'SLE11-SP4-Debuginfo-Updates for sle-11-x86_64' [done]
Adding repository 'SLE11-Security-Module for sle-11-x86_64' [done]
Adding repository 'SLES11-Extras for sle-11-x86_64' [done]
Adding repository 'SLES11-SP4-Pool for sle-11-x86_64' [done]
Adding repository 'SLES11-SP4-Updates for sle-11-x86_64' [done]
# | Alias | Name | Enabled | Refresh
--+---------------------------------------------------+-----------------------------------------------+---------+--------
1 | container-suseconnect:SLE11-Public-Cloud-Module | SLE11-Public-Cloud-Module for sle-11-x86_64 | No | Yes    
2 | container-suseconnect:SLE11-SP4-Debuginfo-Pool | SLE11-SP4-Debuginfo-Pool for sle-11-x86_64 | No | No     
3 | container-suseconnect:SLE11-SP4-Debuginfo-Updates | SLE11-SP4-Debuginfo-Updates for sle-11-x86_64 | No | Yes    
4 | container-suseconnect:SLE11-Security-Module | SLE11-Security-Module for sle-11-x86_64 | No | Yes    
5 | container-suseconnect:SLES11-Extras | SLES11-Extras for sle-11-x86_64 | No | Yes    
6 | container-suseconnect:SLES11-SP4-Pool | SLES11-SP4-Pool for sle-11-x86_64 | Yes | No     
7 | container-suseconnect:SLES11-SP4-Updates | SLES11-SP4-Updates for sle-11-x86_64 | Yes | Yes 
```

And on a normal (I think it’s normal, I didn’t set it up) SLES 11SP4 machine I have:

```auto
$ zypper repos
# | Alias | Name | Enabled | Refresh
--+--------------------------------------------------+--------------------------------------------------+---------+--------
1 | SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109 | SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109 | Yes | Yes    
```

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [December 13, 2017, 1:04am UTC](https://forums.suse.com/t/development-packages-in-docker-container/30663/2 "2017-12-13T01:04:28Z")

</div>

ovidiub13 Wrote in message:  
[color=blue]

> I’m running Docker on a SLES 12SP3 machine. The machine is registered  
> with SUSEConnect, and has the Containers module installed.
> 
> When running a container from the Docker image for SLES 11SP4, I can’t  
> find via zypper many of the packages that I find on the host or on other  
> SLES 11SP4 machines.
> 
> For example, one package that I can’t find is _zlib-devel_. I need that  
> and a few others in order to compile the latest python.[/color]

Are all the packages you can’t find development ones (i.e. they  
end in -devel)?  
[color=blue]

> The repos I have inside the contaier:
> 
> ## Code:
> 
> bash-3.2# zypper repos  
> Refreshing service ‘container-suseconnect’.  
> Adding repository ‘SLE11-Public-Cloud-Module for sle-11-x86\_64’ [done]  
> Adding repository ‘SLE11-SP4-Debuginfo-Pool for sle-11-x86\_64’ [done]  
> Adding repository ‘SLE11-SP4-Debuginfo-Updates for sle-11-x86\_64’ [done]  
> Adding repository ‘SLE11-Security-Module for sle-11-x86\_64’ [done]  
> Adding repository ‘SLES11-Extras for sle-11-x86\_64’ [done]  
> Adding repository ‘SLES11-SP4-Pool for sle-11-x86\_64’ [done]  
> Adding repository ‘SLES11-SP4-Updates for sle-11-x86\_64’ [done]
> 
> # | Alias | Name | Enabled | Refresh
> 
> –±--------------------------------------------------±----------------------------------------------±--------±-------  
> 1 | container-suseconnect:SLE11-Public-Cloud-Module | SLE11-Public-Cloud-Module for sle-11-x86\_64 | No | Yes  
> 2 | container-suseconnect:SLE11-SP4-Debuginfo-Pool | SLE11-SP4-Debuginfo-Pool for sle-11-x86\_64 | No | No  
> 3 | container-suseconnect:SLE11-SP4-Debuginfo-Updates | SLE11-SP4-Debuginfo-Updates for sle-11-x86\_64 | No | Yes  
> 4 | container-suseconnect:SLE11-Security-Module | SLE11-Security-Module for sle-11-x86\_64 | No | Yes  
> 5 | container-suseconnect:SLES11-Extras | SLES11-Extras for sle-11-x86\_64 | No | Yes  
> 6 | container-suseconnect:SLES11-SP4-Pool | SLES11-SP4-Pool for sle-11-x86\_64 | Yes | No  
> 7 | container-suseconnect:SLES11-SP4-Updates | SLES11-SP4-Updates for sle-11-x86\_64 | Yes | Yes
> 
> --------------------[/color]

-devel packages are available with the SDK so you need the  
SLE11-SP4-SDK-Pool and -Updates repos.  
[color=blue]

> And on a normal (I think it’s normal, I didn’t set it up) SLES 11SP4  
> machine I have:
> 
> ## Code:
> 
> $ zypper repos
> 
> # | Alias | Name | Enabled | Refresh
> 
> –±-------------------------------------------------±-------------------------------------------------±--------±-------  
> 1 | SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109 | SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109 | Yes | Yes[/color]

If the above is the only repo it suggests the server is not  
registered as I’d at least expect to see SLES11-SP4-Pool and  
-Updates.

## HTH.

Simon Flood  
SUSE Knowledge Partner

----Android NewsGroup Reader----  
[http://usenet.sinaapp.com/](http://usenet.sinaapp.com/)

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [December 13, 2017, 1:10am UTC](https://forums.suse.com/t/development-packages-in-docker-container/30663/3 "2017-12-13T01:10:13Z")

</div>

Simon Flood Wrote in message:  
[color=blue]

> -devel packages are available with the SDK so you need the  
> SLE11-SP4-SDK-Pool and -Updates repos.[/color]

See the “Writing your Dockerfile” section of htt  
ps://www.suse.com/communities/blog/first-sles-container/ for an  
example of adding repository to your container.

## HTH.

Simon Flood  
SUSE Knowledge Partner

----Android NewsGroup Reader----  
[http://usenet.sinaapp.com/](http://usenet.sinaapp.com/)

---

<div class="post-metadata">

**Author:** ![MadPipe](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/madpipe/32/1427_2.png) [@MadPipe](https://forums.suse.com/u/MadPipe)\
**Post date:** [December 13, 2017, 2:13pm UTC](https://forums.suse.com/t/development-packages-in-docker-container/30663/4 "2017-12-13T14:13:13Z")

</div>

The page [here](https://www.suse.com/communities/blog/first-sles-container/) shows an example of using the SLES 12 Docker image.

How do I get in the container the Repos you mentioned? I have the SDK module installed in the SLES host but that is SLES 12, and the images I need to work with are SLES 11.

I’ve tried copying the repo file from the SLES 11 machine I’ve mentioned, since I see the zlib-devel package is available there. However, even after adding the repo, the pakcage wasn’t available inside the container.

Any other ideas on how to get those repos added in the container?
