OpenSuse 13.2: Docker

Hello,

I would like to install docker in OpenSUSE 13.2. It should be part of the standard repository but it isn’t. Building seems to be broken.
Also in the repository Virtualization:container I do not get docker itself just other programs from the docker world. Can somebody tell me whats wrong here?

Best

Hi
There is a docker update in http://download.opensuse.org/update/13.2/

If you have switched to another repo, I would suggest switching back to the default repo via zypper up --from <13.2 update repo>

Hi,

I didn’t change the repository. I just added the repository for container virtualization, because I didn’t got docker in the standard repos:

# zypper lr -u
#  | Alias                              | Name                                                    | Aktiviert | GPG-Überprüfung | Aktualisieren | URI                                                                                
---+------------------------------------+---------------------------------------------------------+-----------+-----------------+---------------+------------------------------------------------------------------------------------
 1 | download.opensuse.org-13.2-non-oss | Aktualisierungs-Repository (Nicht-Open-Source-Software) | Ja        | (r ) Ja         | Ja            | http://download.opensuse.org/update/13.2-non-oss/                                  
 2 | download.opensuse.org-non-oss      | Haupt-Repository (NON-OSS)                              | Ja        | ( p) Ja         | Ja            | http://download.opensuse.org/distribution/13.2/repo/non-oss/                       
 3 | download.opensuse.org-oss          | Haupt-Repository (OSS)                                  | Ja        | ( p) Ja         | Ja            | http://download.opensuse.org/distribution/13.2/repo/oss/                           
 4 | download.opensuse.org-update       | Hauptaktualisierungs-Repository                         | Ja        | (r ) Ja         | Ja            | http://download.opensuse.org/update/13.2/                                          
 5 | openSUSE-13.2-0                    | openSUSE-13.2-0                                         | Ja        | ( p) Ja         | Ja            | http://download.opensuse.org/distribution/13.2/repo/oss/                           
 6 | openSUSE_13.2_Virt                 | openSUSE 13.2 Virt                                      | Ja        | (r ) Ja         | Ja            | http://download.opensuse.org/repositories/Virtualization:/containers/openSUSE_13.2/
 7 | repo-debug                         | openSUSE-13.2-Debug                                     | Nein      | ----            | Ja            | http://download.opensuse.org/debug/distribution/13.2/repo/oss/                     
 8 | repo-debug-update                  | openSUSE-13.2-Update-Debug                              | Nein      | ----            | Ja            | http://download.opensuse.org/debug/update/13.2/                                    
 9 | repo-debug-update-non-oss          | openSUSE-13.2-Update-Debug-Non-Oss                      | Nein      | ----            | Ja            | http://download.opensuse.org/debug/update/13.2-non-oss/                            
10 | repo-source                        | openSUSE-13.2-Source                                    | Nein      | ----            | Ja            | http://download.opensuse.org/source/distribution/13.2/repo/oss/  

The uri you mentioned is included and active.
Searching for docker gives me this:

# zypper se docker
Daten des Repositories laden ...
Installierte Pakete lesen ...

S | Name                   | Zusammenfassung                                              | Typ       
--+------------------------+--------------------------------------------------------------+-----------
  | docker                 | The Linux container runtime                                  | Quellpaket
  | docker-bash-completion | Bash Completion for docker                                   | Paket     
  | docker-bench-security  | Docker Bench for Security                                    | Paket     
  | docker-bench-security  | Docker Bench for Security                                    | Quellpaket
  | docker-client          | Client to interact with docker daemon                        | Quellpaket
  | docker-compose         | Define and run complex applications using Docker             | Paket     
  | docker-compose         | Define and run complex applications using Docker             | Quellpaket
  | docker-distribution    | The Docker toolset to pack, ship, store, and deliver content | Quellpaket
  | docker-machine         | Machine management for a container-centric world             | Quellpaket
  | docker-swarm           | Docker-native clustering system                              | Quellpaket
  | docker-test            | Test package for docker                                      | Paket     
  | docker-zsh-completion  | Zsh Completion for docker                                    | Paket     
  | python-docker-py       | Docker API Client                                            | Paket     
  | python-docker-py       | Docker API Client                                            | Quellpaket
  | python-docker-py-test  | Unit tests                                                   | Paket     
  | python-dockerpty       | Docker API Client                                            | Paket     
  | python-dockerpty       | Docker API Client                                            | Quellpaket
  | rubygem-docker-api     | A simple REST client for the Docker Remote API               | Quellpaket
  | sle2docker             | Create SLE images for Docker                                 | Quellpaket
  | systemd-docker         | Run Docker containers in systemd environment                 | Quellpaket
  | zypper-docker          | Easy patch and update solution for Docker images             | Quellpaket

But installing I get this:

# zypper in docker
Daten des Repositories laden ...
Installierte Pakete lesen ...
'docker' wurde in den Paketnamen nicht gefunden. Fähigkeiten werden durchsucht.
Keine Anbieter von 'docker' gefunden.
Paketabhängigkeiten auflösen ...

Keine auszuführenden Aktionen.


When I look at the docker page over the package search (https://build.opensuse.org/package/show?project=openSUSE%3A13.2%3AUpdate&package=patchinfo.4449) I see that it was not build. Could that be the reason?

Hi
No it was built, then disabled…
https://build.opensuse.org/package/binaries/openSUSE:13.2:Update/patchinfo.4449?repository=standard

I would guess because something installed has switched the repo and won’t allow it to be installed, what happens if you check where it’s located;


zypper if docker
zypper in -r 4 docker

Hi,

I tried both commands and they both do not find docker:

# zypper if docker
Daten des Repositories laden ...
Installierte Pakete lesen ...


Paket 'docker' nicht gefunden.

# zypper in -r 4 docker
Daten des Repositories laden ...
Installierte Pakete lesen ...
'docker' wurde in den Paketnamen nicht gefunden. Fähigkeiten werden durchsucht.
Keine Anbieter von 'docker' gefunden.
Paketabhängigkeiten auflösen ...

Keine auszuführenden Aktionen.

Hi
Ok, if you disable repo #6 and force a refresh and see if can find a different package as well as docker;


zypper mr -d -R 6
zypper ref -f
zypper if docker
zypper if docker-compose

Hi,

also doesn’t seem to help:

# zypper mr -d -R 6
Repository 'openSUSE_13.2_Virt' wurde erfolgreich deaktiviert.
Autoaktualisierung wurde für Repository 'openSUSE_13.2_Virt' deaktiviert.

# zypper lr
#  | Alias                              | Name                                                    | Aktiviert | GPG-Überprüfung | Aktualisieren
---+------------------------------------+---------------------------------------------------------+-----------+-----------------+--------------
 1 | download.opensuse.org-13.2-non-oss | Aktualisierungs-Repository (Nicht-Open-Source-Software) | Ja        | (r ) Ja         | Ja           
 2 | download.opensuse.org-non-oss      | Haupt-Repository (NON-OSS)                              | Ja        | ( p) Ja         | Ja           
 3 | download.opensuse.org-oss          | Haupt-Repository (OSS)                                  | Ja        | ( p) Ja         | Ja           
 4 | download.opensuse.org-update       | Hauptaktualisierungs-Repository                         | Ja        | (r ) Ja         | Ja           
 5 | openSUSE-13.2-0                    | openSUSE-13.2-0                                         | Ja        | ( p) Ja         | Ja           
 6 | openSUSE_13.2_Virt                 | openSUSE 13.2 Virt                                      | Nein      | ----            | Nein         
 7 | repo-debug                         | openSUSE-13.2-Debug                                     | Nein      | ----            | Ja           
 8 | repo-debug-update                  | openSUSE-13.2-Update-Debug                              | Nein      | ----            | Ja           
 9 | repo-debug-update-non-oss          | openSUSE-13.2-Update-Debug-Non-Oss                      | Nein      | ----            | Ja           
10 | repo-source                        | openSUSE-13.2-Source                                    | Nein      | ----            | Ja           

 # zypper ref -f
Aktualisierung der Rohmetadaten wird erzwungen
Metadaten von Repository 'Aktualisierungs-Repository (Nicht-Open-Source-Software)' werden abgerufen .............................................................[fertig]
Erzwinge Erstellung des Repository-Zwischenspeichers
Zwischenspeicher für Repository 'Aktualisierungs-Repository (Nicht-Open-Source-Software)' wird erzeugt ..........................................................[fertig]
Aktualisierung der Rohmetadaten wird erzwungen
Metadaten von Repository 'Haupt-Repository (NON-OSS)' werden abgerufen ..........................................................................................[fertig]
Erzwinge Erstellung des Repository-Zwischenspeichers
Zwischenspeicher für Repository 'Haupt-Repository (NON-OSS)' wird erzeugt .......................................................................................[fertig]
Aktualisierung der Rohmetadaten wird erzwungen
Metadaten von Repository 'Haupt-Repository (OSS)' werden abgerufen ..............................................................................................[fertig]
Erzwinge Erstellung des Repository-Zwischenspeichers
Zwischenspeicher für Repository 'Haupt-Repository (OSS)' wird erzeugt ...........................................................................................[fertig]
Aktualisierung der Rohmetadaten wird erzwungen
Metadaten von Repository 'Hauptaktualisierungs-Repository' werden abgerufen .....................................................................................[fertig]
Erzwinge Erstellung des Repository-Zwischenspeichers
Zwischenspeicher für Repository 'Hauptaktualisierungs-Repository' wird erzeugt ..................................................................................[fertig]
Aktualisierung der Rohmetadaten wird erzwungen
Metadaten von Repository 'openSUSE-13.2-0' werden abgerufen .....................................................................................................[fertig]
Erzwinge Erstellung des Repository-Zwischenspeichers
Zwischenspeicher für Repository 'openSUSE-13.2-0' wird erzeugt ..................................................................................................[fertig]
Alle Repositories wurden aktualisiert.

 # zypper if docker
Daten des Repositories laden ...
Installierte Pakete lesen ...


Paket 'docker' nicht gefunden.

# zypper if docker-compose
Daten des Repositories laden ...
Installierte Pakete lesen ...


Paket 'docker-compose' nicht gefunden.

# zypper se docker
Daten des Repositories laden ...
Installierte Pakete lesen ...

S | Name                   | Zusammenfassung             | Typ       
--+------------------------+-----------------------------+-----------
  | docker                 | The Linux container runtime | Quellpaket
  | docker-bash-completion | Bash Completion for docker  | Paket     
  | docker-test            | Test package for docker     | Paket     
  | docker-zsh-completion  | Zsh Completion for docker   | Paket

# zypper if docker-test
Daten des Repositories laden ...
Installierte Pakete lesen ...


Informationen für Paket docker-test:
------------------------------------
Repository: Hauptaktualisierungs-Repository
Name: docker-test
Version: 1.9.1-52.1
Arch: noarch
Anbieter: openSUSE
Installiert: Nein
Status: nicht installiert
Installierte Größe: 22,5 MiB
Zusammenfassung: Test package for docker
Beschreibung: 
  Test package for docker. It contains the source code and the tests.

Hi
The only other thing I can think of it the mirror your being pointed to by mirrorbrain is incomplete.

Do you see a mirror close by in the following list?
http://download.opensuse.org/update/13.2/x86_64/docker-1.9.1-49.1.x86_64.rpm.mirrorlist

The other option is to manually download and install the rpm and see what spits out;


zypper in docker-1.9.1-49.1.x86_64.rpm

Hi,

when I saw the “x86_64” in the link I remembered I am on 32 bit system. I checked on a 64bit virtual system, there I get docker as expected:

# zypper if docker
Daten des Repositories laden ...
Installierte Pakete lesen ...


Informationen für Paket docker:
-------------------------------
Repository: openSUSE-13.2-Update
Name: docker
Version: 1.9.1-52.1
Arch: x86_64
Anbieter: openSUSE
Installiert: Nein
Status: nicht installiert
Installierte Größe: 22,9 MiB
Zusammenfassung: The Linux container runtime
Beschreibung: 
  Docker complements LXC with a high-level API which operates at the process
  level. It runs unix processes with strong guarantees of isolation and
  repeatability across servers.
  
  Docker is a great building block for automating distributed systems: large-scale
  web deployments, database clusters, continuous deployment systems, private PaaS,
  service-oriented architectures, etc.


On another 32 bit virtual machine I also cannot get docker. Why can’t I get docker on a 32bit system?

Hi
Ahh, AFAIK only supports 64bit (32bit is on it’s way out…)

Hi,

yeah, I guess it is time to switch to 64 bit. The system is running for a pretty long time now with update from version to version without a full new installation. But there is always a first time.

Thanks a lot for your help.

Best

FYI -
If you’re new to Docker (even installing), I’d recommend you take a look at the Wiki pages pages I created
https://en.opensuse.org/User:Tsu2

I haven’t tried to set up Docker on 32-bit, but find your problems interesting… Although I wouldn’t agree with any attempt to install multiple running OS on a 32-bit system simultaneously without extensive modification to support access to resources automatically and more efficiently in a 64-bit system(like PAE), I find it a little difficult to believe there would be significant issues running Docker on a 32-bit system.

I think Malcolm’s link to the 32-bit OBS for Docker points to packages which were successfully built, and docker v.1.9 is very recent (built 2 mths ago). I don’t see the reason why building has been disabled since then. You might try downloading those packages individually and installing into your 32-bit system.

TSU