Bug 1101123 - docker package binary conflicts with docker-io
Summary: docker package binary conflicts with docker-io
Keywords:
Status: CLOSED DUPLICATE of bug 1038102
Alias: None
Product: Fedora
Classification: Fedora
Component: docker-io
Version: 20
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lokesh Mandvekar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-26 08:10 UTC by dcorking
Modified: 2015-01-05 12:51 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-26 10:39:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description dcorking 2014-05-26 08:10:13 UTC
Description of problem:
There is a file name conflict for /usr/bin/docker between 2 Fedora 20 packages.

Version-Release number of selected component (if applicable):

docker-1.5-10.fc20.x86_64  (f20 updates, a dockapp that provides a system tray for WindowMaker, XFCE etc.)
docker-io-0.11.1-1.fc20.x86_64.rpm  (f20 updates, a new Linux containerization app that has proven very popular)

How reproducible: Consistent.

Steps to Reproduce:

1. sudo yum install docker
2. sudo yum install docker-io

Actual results:

Transaction check error:
  file /usr/bin/docker from install of docker-io-0.11.1-1.fc20.x86_64 conflicts with file from package docker-1.5-10.fc20.x86_64

Expected results:

All packages in F20 should be able to co-exist unless a conflict is documented
in the RPM file.

Since the conflict is only file naming, one of these packages could be patched to allow it to co-exist with the other.

Additional info:

Possible workaround that keeps docker working for me follows. 
(It allows docker-io to install, but I am not sure if docker-io is fully functioning.)

#!/bin/bash
sudo mv /usr/bin/docker /usr/bin/wmdocker
# user must change dock icons that link to docker to point to wmdocker
sudo yum install docker-io --downloadonly
cd /var/cache/yum/x86_64/20/updates/packages/
sudo rpm -Uvf --force docker-io-0.11.1-1.fc20.x86_64.rpm

The conflict probably also exists in rawhide. (unverified)

The upstream binary in both packages is 'docker'. Debian/Ubuntu rename their binary to 'docker-io' to deal with the conflict.

There is a plan to replace the 'docker' package with a renamed 'wmdocker' package in F21. (Bug # 1043676). However, that will take until F23 release to complete the Obsoletes/Expires process. In the meantime, any user with docker from F20 or rawhide will be unable to install docker-io, unless they use the workaround. 

Related issues: 

* https://fedorahosted.org/fpc/ticket/341 "How to replace "docker" package with an entirely different package of the same name?"

* https://bugzilla.redhat.com/show_bug.cgi?id=1043676 "drop docker from rawhide (or redirect to wmdocker)"

Comment 1 Lokesh Mandvekar 2014-05-26 09:57:48 UTC
I have no idea why the f20 build for wmdocker got deleted (or who did it for that matter). http://koji.fedoraproject.org/koji/packageinfo?packageID=17341

The install docs for fedora on docker.io do mention installing wmdocker to get around this problem: http://docs.docker.io/installation/fedora/ 

The best solution would be to rebuild and update wmdocker for f20 (since it already existed).

Come f22, the current docker-io would go in as 'docker', while the current 'docker' would only exist as wmdocker.

Andreas: any idea why the f20 wmdocker build got deleted?

Comment 2 dcorking 2014-05-26 10:39:26 UTC

*** This bug has been marked as a duplicate of bug 1038102 ***

Comment 3 Andreas Bierfert 2015-01-05 12:51:47 UTC
Clearing needinfo


Note You need to log in before you can comment on or make changes to this bug.