Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide repo for docker-ce on Fedora 26 #35

Closed
rothgar opened this issue Jun 18, 2017 · 64 comments
Closed

Please provide repo for docker-ce on Fedora 26 #35

rothgar opened this issue Jun 18, 2017 · 64 comments

Comments

@rothgar
Copy link

rothgar commented Jun 18, 2017

Expected behavior

Installation on Fedora 26 or rawhide should have a $releasever available.

Actual behavior

Installation path for 26 is missing from https://download.docker.com/linux/fedora/

Information

  • Linux distro: fedora 26
  • Docker CE version: 17.05.0-ce (using version 25 edge repo)

Steps to reproduce the behavior

  1. Install Fedora 26
  2. run
sudo dnf config-manager \
    --add-repo \
    https://download.docker.com/linux/fedora/docker-ce.repo

sudo dnf install docker-ce
@zkanda
Copy link

zkanda commented Jul 6, 2017

Any update on this? 👍

@denny0223
Copy link

denny0223 commented Jul 11, 2017

Fedora 26 has been released today.

And I upgraded to 26 then fail to install docker-ce.

@darylf
Copy link

darylf commented Jul 12, 2017

I'm not sure if this is related, but I upgraded to 26 and every time I run dnf I'm getting the following message:

Failed to synchronize cache for repo 'docker-ce-stable', disabling.

I had docker installed before upgrading and it otherwise seems to work.

@samgurtman-zz
Copy link

Does anyone have a workaround to get latest edge on Fedora 26?

@andrewhsu
Copy link
Contributor

andrewhsu commented Jul 12, 2017

New Fedora 26 packages for docker-ce are on its way.

In the meantime, as a workaround you could grab the latest stable static binaries and install with instructions.

And a more convenient way, but totally not recommend, is to simply install directly from the older Fedora 25 package. Has risk of not working properly on many levels, but you know that ;)

$ dnf install https://download.docker.com/linux/fedora/25/x86_64/stable/Packages/docker-ce-17.06.0.ce-1.fc25.x86_64.rpm

@vinkal-chudgar
Copy link

@andrewhsu - have you got any further updates?

@ksylvan
Copy link

ksylvan commented Jul 17, 2017

@samgurtman you can always edit the /etc/yum.repos.d/docker-ce.repo file to replace all the $releasever strings with 25. Do this:

sed -e 's/\$releasever/25/' \
  -e 's/^\[docker/[docker-25/' /etc/yum.repos.d/docker-ce.repo > \
  /etc/yum.repos.d/docker-hack.repo

Enable the edge repo in that file and install.

Then remove /etc/yum.repos.d/docker-hack.repo when the 26/ directory shows up at https://download.docker.com/linux/fedora/

@qwang07
Copy link

qwang07 commented Jul 22, 2017

still on its way??

@xibuka
Copy link

xibuka commented Jul 27, 2017

@andrewhsu Thanks, I installed the 25 package in fedora 26, till now every thing work fine.
This solved my "authentication required for docker push" issue.

@seemethere
Copy link

seemethere commented Jul 27, 2017

Repo is up: https://download.docker.com/linux/fedora/26/

If you want to try out the latest RC for fedora 26 you can use:

$ curl -fsSL https://test.docker.com > install.sh
$ sh install.sh

@iamleeg
Copy link

iamleeg commented Jul 28, 2017

There are no stable packages in the repo (at https://download.docker.com/linux/fedora/26/x86_64/stable/Packages/), should this really be closed?

@iamleeg
Copy link

iamleeg commented Jul 28, 2017

Additionally the script you linked to doesn't do its thing on Fedora 26:

Executing docker install script, commit: 2502d65

Either your platform is not easily detectable or is not supported by this
installer script.
Please visit the following URL for more detailed installation instructions:

https://docs.docker.com/engine/installation/

@seemethere
Copy link

@iamleeg The script seems to work fine in a fedora 26 docker container:

Docker container output
$ docker run --rm fedora:26 sh -c "curl -fsSL test.docker.com | sh; docker --version"
Executing docker install script, commit: 2502d65
+ sh -c 'dnf install -y -q dnf-plugins-core'
/usr/share/doc/libdnf/AUTHORS: No such file or directory
cannot reconstruct rpm from disk files
/usr/share/locale/ar/LC_MESSAGES/dnf.mo: No such file or directory
cannot reconstruct rpm from disk files
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
+ sh -c 'dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo'
Adding repo from: https://download.docker.com/linux/fedora/docker-ce.repo
+ '[' test '!=' stable ']'
+ echo 'Info: Enabling channel '\''test'\'' for docker-ce repo'
+ sh -c 'dnf config-manager --set-enabled docker-ce-test'
Info: Enabling channel 'test' for docker-ce repo
+ sh -c 'dnf makecache'
Docker CE Stable - x86_64                       2.8 kB/s | 257  B     00:00
Docker CE Test - x86_64                          15 kB/s | 2.5 kB     00:00
Last metadata expiration check: 0:00:00 ago on Fri Jul 28 15:21:11 2017.
Metadata cache created.
+ sh -c 'dnf install -y -q docker-ce'
warning: /var/cache/dnf/docker-ce-test-16874ba681720c84/packages/docker-ce-17.07.0.ce-0.1.rc1.fc26.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
setsebool:  SELinux is disabled.
Failed to connect to bus: No such file or directory

If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

WARNING: Adding a user to the "docker" group will grant the ability to run
         containers which can be used to obtain root privileges on the
         docker host.
         Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
         for more information.

Docker version 17.07.0-ce-rc1, build 8c4be39

As well as a fedora 26 VM:

VM output
[vagrant@localhost ~]$ cat /etc/os-release
NAME=Fedora
VERSION="26 (Cloud Edition)"
ID=fedora
VERSION_ID=26
PRETTY_NAME="Fedora 26 (Cloud Edition)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:26"
HOME_URL="https://fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=26
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=26
PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy
VARIANT="Cloud Edition"
VARIANT_ID=cloud
[vagrant@localhost ~]$ curl -fsSL https://test.docker.com | sh; docker --version
Executing docker install script, commit: 2502d65
+ sudo -E sh -c 'dnf install -y -q dnf-plugins-core'
+ sudo -E sh -c 'dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo'
Adding repo from: https://download.docker.com/linux/fedora/docker-ce.repo
+ '[' test '!=' stable ']'
+ echo 'Info: Enabling channel '\''test'\'' for docker-ce repo'
Info: Enabling channel 'test' for docker-ce repo
+ sudo -E sh -c 'dnf config-manager --set-enabled docker-ce-test'
+ sudo -E sh -c 'dnf makecache'
Docker CE Stable - x86_64                                            103  B/s | 257  B     00:02
Docker CE Test - x86_64                                              1.1 kB/s | 2.5 kB     00:02
Last metadata expiration check: 0:00:00 ago on Fri 28 Jul 2017 03:27:07 PM UTC.
Metadata cache created.
+ sudo -E sh -c 'dnf install -y -q docker-ce'
warning: /var/cache/dnf/docker-ce-test-16874ba681720c84/packages/docker-ce-17.07.0.ce-0.1.rc1.fc26.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY

If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker vagrant

Remember that you will have to log out and back in for this to take effect!

WARNING: Adding a user to the "docker" group will grant the ability to run
         containers which can be used to obtain root privileges on the
         docker host.
         Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
         for more information.

Docker version 17.07.0-ce-rc1, build 8c4be39

In any case I will reopen this issue until we do get packages for Fedora 26 up on the stable channel. Until then feel free to install using:

$ curl -fsSL https://test.docker.com > install.sh
$ sh install.sh

@seemethere seemethere reopened this Jul 28, 2017
@mrukas
Copy link

mrukas commented Jul 28, 2017

Im also waiting for stable packages in the fedora 26 repo. But im sure you guys are working on it. Keep up the great work!

@illucent
Copy link

currently test version only

$ sudo dnf config-manager \
    --add-repo \
    https://download.docker.com/linux/fedora/docker-ce.repo

$ sudo dnf config-manager --set-enabled docker-ce-test

note: docker-ce-test, not docker-ce-testing

$ sudo dnf makecache

note: without fast

$ sudo dnf install docker-ce

@ahmetkizilay
Copy link

@seemethere @iamleeg I also had trouble with installing with install.sh on Fedora 26
It looks like the problem is caused by the output of the lsb_release --codename on line 285

if command_exists lsb_release; then
  dist_version="$(lsb_release --codename | cut -f2)"
fi

The output is TwentySix as opposed to 26 which results in the wrong key name for the SUPPORT MAP.
Commenting out the code chunk above and making sure the dist_version is obtained by /etc/os-release solves the problem.

Hope this helps.

@ahmetkizilay
Copy link

ahmetkizilay commented Aug 6, 2017

The script seems to work fine in a fedora 26 docker container:

that must be because lsb_release command does not exist in the docker image for fedora 26.

@ghost
Copy link

ghost commented Aug 11, 2017

docker test installed success. please support docker ce @ stable branch. thanks

@sysadmiral
Copy link

We still have no stable packages in the repo as stated in #35 (comment) so could we get an update of when these are likely to appear?

@friism
Copy link

friism commented Aug 16, 2017

These are expected to be available with Docker 17.07 and that will hopefully show up in a matter of days.

Sorry about the delay.

@sjsadowski
Copy link

For now, forcing to use the F25 Packages works. Discovered today. Will fix the repo path on my local install once the packages actually become available.

@sysadmiral
Copy link

yeah I think you have two options currently:

  • enable test repo for fedora 26 repos
  • use fedora 25 stable repo

@johnnywiller
Copy link

Any problems using docker-ce from docker-ce-test repo?

@lig
Copy link

lig commented Aug 22, 2017 via email

@arikkfir
Copy link

I can confirm that for me (Fedora 26) the "docker-ce-test" repository does work, but the stable repository still does not.

@ollien
Copy link

ollien commented Aug 31, 2017

@agronholm Is it wrong to be upset that an issue was marked as resolved when it was not? I would argue no. This isn't something we can fix as contributors,. Certain things need to be done on Docker's end to resolve it. Furthermore, their explanation does not say it's an administrative decision but rather a technical one, even though that doesn't make sense because 17.06 works fine on 26 if you hack dnf to install it.

So no, it's not "being sour. " It's trying to resolve an issue in the only way we can as community members.

@friism
Copy link

friism commented Aug 31, 2017

@lig I understand why this is frustrating. The problem for us is that Fedora 26 was not GA (I think) when we launched Docker 17.06. We try to only add new features and extend support to additional platforms moving forward with new versions of Docker Community Edition, instead of going back and packaging, testing and releasing old Docker Community Edition versions on newer OS variants.

@ollien
Copy link

ollien commented Aug 31, 2017

@friism But it's not an old release. It's the current release.

@seemethere
Copy link

seemethere commented Aug 31, 2017

@ollien 17.06 is an old release because it has already been originally released with no Fedora 26 support. We have a 3 month stable release cycle so the turnaround for stable releases is relatively short. In the mean time the edge release is fine enough for development purposes and should be suitable to use on Fedora 26.

In regards to closing the issue, the original issue stated that there were no repos for Fedora 26. Now there are repos to pull from which is why the issue is marked as resolved. If you feel like you need to open a new issue for stable releases for fedora 26 feel free but 17.06 will not be re-released for 17.06 because it was not originally released for Fedora 26.

@andrewhsu
Copy link
Contributor

The way docker treats the versions in the edge channel is quite usable. It is the current and latest version of docker-ce...worthwhile to have a go at using.

The edge channel contains versions that are only supported for 1 month which means if there are critical bug fixes like CVE security issues, a new release of the edge version will be released, e.g. if a critical issue needs to be addressed in the 17.07.0 release, a new 17.07.1 release will be created in the edge channel.

The stable channel is more conservative in its release cycle. It only contains a version released every 3 months, but it is supported for 4 months. With critical bug fixes, this will be address in the stable channel with a patch number bump as well. Latest version supported in the stable channel is 17.06.1.

When a new ".0" version is released, it is released with packages for distros flavors that that are available at that time. Newer distros that come out afterwards are not rebuilt for an older version. It is best to update to a newer version of docker-ce to get the package on the newer distro flavor.

You may still install older versions of docker-ce after they are not supported, but you run the risk of using a version of docker-ce that has bugs or security issues. Best to keep up-to-date.

This release cadence is not aligned to any specific distro in particular because we support many distros. This process is to establish a more regular time-based release for the docker-ce codebase. If a new distro flavor pops up after a docker-ce release, the most a user will have to wait is for the next edge channel release which will only be for newer versions of docker-ce.

More details about our releases are here: https://docs.docker.com/engine/installation/

@favadi
Copy link

favadi commented Sep 1, 2017

Whatever policy the docker packaging team is following, as an end user I found it disappointed that I can't use current stable version of docker on one of most popular Linux distributions available. Another option is just stick to the (old) docker version in official Fedora repository.

@ksylvan
Copy link

ksylvan commented Sep 1, 2017

At this point, there's not much point in arguing this. We can just wait a few days for 17.09 to come out.

@zeva-dev
Copy link

zeva-dev commented Sep 1, 2017

I think some of the frustration comes from earlier announcements that 17.07 would make it to Fedora 26 stable. That's not the case. Even this ticket was closed. claiming the issue was resolved. It is not. It is true that Fedora deserves a bit more love 😄
Anyway, thanks for the CE team for their work and contribution to the community, we will wait for 17.09. Please, don't forget us 🤣

@lig
Copy link

lig commented Sep 1, 2017

@friism don't you know there is next Fedora version repo ready before the release? This made exactly for those who prepare packages for Fedora.
Are you saying that next time Fedora releases you are going to perform as at this time?
This is not supporting of Fedora.
If you really want to be honest you have two options. Either you build ahead and have current Docker version already built for a new Fedora release when it's out, or you need to give up to support Fedora. Just step away and don't mislead the community. Then we will figure out how to bring Docker to Fedora. We just need to stop relying on false expectations.

@sulhome
Copy link

sulhome commented Sep 8, 2017

what to do now? what is the solution. I don't mind installing old versions of docker on Fedora 26. Is that possible or we have to wait for the next release?

I found this link very useful https://docs.docker.com/engine/installation/linux/docker-ce/fedora/#install-using-the-repository

@sysadmiral
Copy link

The solution would be to wait for the 17.09 package to be added to the stable repo. It was added to the test repo very recently and is moving through Dockers normal release process.

The workaround is to either enable the test repo OR to use the fedora 25 repo OR some other more manual method not using the fedora repos or dnf.

@DougHayward
Copy link

DougHayward commented Sep 25, 2017

Does this workaround also work when using Fedora 28? -_-'


Update: It does.

@allisson
Copy link

17.09 is released on stable: https://download.docker.com/linux/fedora/26/x86_64/stable/Packages/docker-ce-17.09.0.ce-1.fc26.x86_64.rpm 😃

@lig
Copy link

lig commented Sep 28, 2017

Is there Rawhide/27 repo already? Could you please setup it and release 17.09 for the upcoming Fedora version? This should prevent a similar case when F27 released.

@thaJeztah
Copy link
Member

27 has not been released yet, and packages are not shipped for beta releases

screen shot 2017-09-28 at 02 30 34

But feel free to open an issue to track that

@lig
Copy link

lig commented Sep 28, 2017

@thaJeztah and that is why we are facing no repo error every release. There is a repo already which is available for all exactly to allow everybody to prepare their current stable releases for the upcoming distro release.
I thought Docker has some relation to an expertise in shipping software, hasn't it?

@moljac024
Copy link

I was just about to try fedora 26 but this issue has made me change my mind. Note that docs still only list Fedora 24 and 25 as supported versions, while Fedora 27 is right around the corner.

This is a really sad state of affairs.

@lig
Copy link

lig commented Oct 20, 2017

#143

@ksylvan
Copy link

ksylvan commented Nov 29, 2017

Do we need to do this same dance with Fedora 27 now? ;-)

@favadi
Copy link

favadi commented Nov 29, 2017

Just use the docker version in Fedora official repository. I don't think their packaging policy will change anytime soon.

@ksylvan
Copy link

ksylvan commented Nov 29, 2017

Not really an acceptable substitute. Docker in the official repo is pretty old.

$ dnf info docker-latest
Last metadata expiration check: 0:00:00 ago on Wed 29 Nov 2017 12:48:18 AM PST.
Available Packages
Name         : docker-latest
Epoch        : 2
Version      : 1.13
Release      : 34.git27e468e.fc27
Arch         : x86_64
Size         : 20 M
Source       : docker-latest-1.13-34.git27e468e.fc27.src.rpm
Repo         : fedora
Summary      : Automates deployment of containerized applications
URL          : https://github.com/projectatomic/docker
License      : ASL 2.0
Description  : Docker is an open-source engine that automates the deployment of any
             : application as a lightweight, portable, self-sufficient container that will
             : run virtually anywhere.
             : 
             : Docker containers can encapsulate any payload, and will run consistently on
             : and between virtually any server. The same container that a developer builds
             : and tests on a laptop will run at scale, in production*, on VMs, bare-metal
             : servers, OpenStack clusters, public instances, or combinations of the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests