Git Product home page Git Product logo

docker-install's Introduction

docker/docker-install

Home of the script that lives at get.docker.com and test.docker.com!

The purpose of the install script is for a convenience for quickly installing the latest Docker-CE releases on the supported linux distros. It is not recommended to depend on this script for deployment to production systems. For more thorough instructions for installing on the supported distros, see the install instructions.

This repository is solely maintained by Docker, Inc.

Usage:

From https://get.docker.com:

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

From https://test.docker.com:

curl -fsSL https://test.docker.com -o test-docker.sh
sh test-docker.sh

From the source repo (This will install latest from the stable channel):

sh install.sh

Testing:

To verify that the install script works amongst the supported operating systems run:

make shellcheck

Legal

Brought to you courtesy of our legal counsel. For more context, please see the NOTICE document in this repo.

Use and transfer of Docker may be subject to certain restrictions by the United States and other governments.

It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.

For more information, please see https://www.bis.doc.gov

Reporting security issues

The maintainers take security seriously. If you discover a security issue, please bring it to their attention right away!

Please DO NOT file a public issue, instead send your report privately to [email protected].

Security reports are greatly appreciated and we will publicly thank you for it. We also like to send gifts—if you're into Docker schwag, make sure to let us know. We currently do not offer a paid security bounty program, but are not ruling it out in the future.

Licensing

docker/docker-install is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

docker-install's People

Contributors

akihirosuda avatar andrewhsu avatar anujajakhade avatar corbin-coleman avatar dieterreuter avatar djelibeybi avatar evalle avatar flavio avatar invisibleroads avatar jamtur01 avatar jessfraz avatar kencochrane avatar konstruktoid avatar michaing avatar mikedougherty avatar neersighted avatar prabhav-thali avatar roman-mueller avatar seemethere avatar stefanscherer avatar thajeztah avatar tianon avatar tiborvass avatar tonistiigi avatar tophj-ibm avatar unclejack avatar vvoland avatar yadominjinta avatar zelahi avatar zimbatm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-install's Issues

Ubuntu 12.04 LTS (Precise) denpendency issue.

When trying to install docker-ce package:

sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null

But docker-ce depends on a later version of libdevmapper.

The following packages have unmet dependencies:
 docker-ce : Depends: libdevmapper1.02.1 (>= 2:1.02.63) but 2:1.02.48-4ubuntu7 is to be installed
E: Unable to correct problems, you have held broken packages.

Manually installing libdevmappe1.02 and dmsetup from Debian wheezy release solves the problem.

Repository does not have release file

OS: Ubuntu 18.04.3 LTS
Steps to reproduce:

gasabr@thinkpad:/tmp$ curl -fsSL https://get.docker.com -o get-docker.sh
gasabr@thinkpad:/tmp$ sh get-docker.sh
# Executing docker install script, commit: 6bf300318ebaab958c4adc341a8c7bb9f3a54a1a
+ sudo -E sh -c apt-get update -qq >/dev/null
[sudo] password for gasabr: 
E: The repository 'http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu bionic Release' does not have a Release file.

get.docker.com for osmc is wrong

code in check_forked function is wrong .

OSMC runs Raspbian but does not has a lsb_release command, your code checks it too early.

it should bearmv7l-raspbian-stretch

but the script got not supported by this installer script.

see

moby/moby#38273

Missing SHA

Reading https://get.docker.com/ and trying to find the commit it was built from. It says it was built from 29533f9 but I can't seem to find that. Is this a case of some git history that's been rewritten possibly?

Thanks

Rootless installer doesn't handle kernels without module support

I'm trying to install docker rootless on a Chromebook.

The Linux environment runs inside an lxd container, itself inside a VM running a hardened kernel without module support.
See https://chromium.googlesource.com/chromiumos/docs/+/master/containers_and_vms.md for more info.

The installer script checks for iptables support by checking if the module is loaded. This doesn't work on chromebooks because modules aren't available. However iptables is there and works (at least when run as root in the lxd container).

PS: regular docker runs perfectly fine, so I'll keep using that for the time being.

Misleading message at runtime for previsously supported Docker engine

Today, as part of regular deployments, which include installing Docker-CE on Ubuntu Trusty 14.04, it took me some time to understand why they were failing.
After finding the one-script-fits-all, I finally understood why:

$ sudo sh get-docker.sh                                                                                                                                                                                                                                       
# Executing docker install script, commit: 40b1b76
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -qq - >/dev/null
+ sh -c echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu trusty edge" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
+ sh -c docker version
Client:
 Version:           18.06.3-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        d7080c1
 Built:             Wed Feb 20 02:27:13 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.3-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       d7080c1
  Built:            Wed Feb 20 02:25:38 2019
  OS/Arch:          linux/amd64
  Experimental:     false
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 ENGINE - ENTERPRISE **

Test drive additional security features by activating Docker Engine - Enterprise.

  * Leverage FIPS 140-2 validated encryption
  * Run only trusted images with digital signature enforcement

** Learn more at https://dockr.ly/engine1 **

ACTIVATE your own engine to Docker Engine - Enterprise using:

  sudo docker engine activate

I understand that it is time to sunset Ubuntu 14.04 support for Docker, but it would be great if we could be offered a more understandable message, after installing it unattended and trying to execute any image, than that:

$ sudo usermod -a -G docker ubuntu                                                                                                                                                                                                                            
$ docker run hello-world                                                                                                                                                                                                                                      
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:301: running exec setns process for init caused \"exit status 23\"": unknown.
ERRO[0000] error waiting for container: context canceled

Note that I decided to not post this message as a Docker-CE Issue because the installed package is not one of this kind anymore.

aarch64-fedora-27 support

Fedora is about to release SBC images (aarch64) for the following devices:

Pine64 (all variants)
Raspberry Pi 3 (64 bit mode)
96boards HiKey
96boards Dragonboard 410c
ARM Juno

https://fedoraproject.org/wiki/Changes/aarch64SBCImages
https://fedoraproject.org/wiki/Releases/27/ChangeSet#aarch64_SBC_.28Single_Board_Computer.29_Disk_Images
https://bugzilla.redhat.com/show_bug.cgi?id=1479254

Before you get inundated with requests for this, the aarch64-fedora-27 platform....

It would be more beneficial to the community than aarch64-ubuntu-xenial as it will run on rpi3s and such very shortly.

Upto now I have been using the version of docker that comes in the repo of:

http://download.opensuse.org/ports/aarch64/distribution/leap/42.2/appliances/openSUSE-Leap42.2-ARM-XFCE-raspberrypi3.aarch64.raw.xz

But it's old and buggy and not packaged by you guys. An aarch64-fedora-27 rpm packaged by you guys would be great.

Btw, I'm happy to help if you need a hand

unable to install docker ce for ubuntu 18.04

curl -fsSL get.docker.com | sh

gives me

+ sudo -E sh -c apt-get update -qq >/dev/null
E: The repository 'http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu bionic Release' does not have a Release file.

Docker rootless install doesn't handle docker version failure

When I first attempted to run the rootless install script it failed on docker version, interrupting the install without printing instructions while leaving the installed files behind.

Technically the install had completed, but dockerd failed to run successfully.

The cause of the run failure has been reported in #101.

x86_64-amzn-2017.09 support

Amazon Linux is a fedora variant. It would be nice if it was supported natively. Current VERSION_ID is 2017.09, although I imagine older versions are easily supported as well.

Wrong target in rootless docker systemd config

The script https://get.docker.com/rootless generates a systemd configuration in the home directory at .config/systemd/user/docker.service.
If we want to enable that service, systemctl --user enable dockerwould be the way to go.

Unfortunately the target in the generated systemd config is multi-user.target. That would be fine for a system service but not for a user service (at least on fedora). It shall be changed to default.target.

Could not find records for the current user ... from /etc/subgid

Hello,

I am following this article:
https://engineering.docker.com/2019/02/experimenting-with-rootless-docker/
and I could not get to install docker in rootless mode. Here is what I tried:

[dummy_user@jaguar ~]$ curl -sSL https://get.docker.com/rootless | sh
# Missing system requirements. Please run following commands to
# install the requirements and run this installer again.
# Alternatively iptables checks can be disabled with SKIP_IPTABLES=1

cat <<EOF | sudo sh -x
curl -o /etc/yum.repos.d/vbatts-shadow-utils-newxidmap-epel-7.repo https://copr.fedorainfracloud.org/coprs/vbatts/shadow-utils-newxidmap/repo/epel-7/vbatts-shadow-utils-newxidmap-epel-7.repo
yum install -y shadow-utils46-newxidmap
cat <<EOT > /etc/sysctl.d/51-rootless.conf
user.max_user_namespaces = 28633
EOT
sysctl --system
EOF

[dummy_user@jaguar ~]$ exit
[root@jaguar shared_account]# cat <<EOF | sudo sh -x
> curl -o /etc/yum.repos.d/vbatts-shadow-utils-newxidmap-epel-7.repo https://copr.fedorainfracloud.org/coprs/vbatts/shadow-utils-newxidmap/repo/epel-7/vbatts-shadow-utils-newxidmap-epel-7.repo
> yum install -y shadow-utils46-newxidmap
> cat <<EOT > /etc/sysctl.d/51-rootless.conf
> user.max_user_namespaces = 28633
> EOT
> sysctl --system
> EOF
+ curl -o /etc/yum.repos.d/vbatts-shadow-utils-newxidmap-epel-7.repo https://copr.fedorainfracloud.org/coprs/vbatts/shadow-utils-newxidmap/repo/epel-7/vbatts-shadow-utils-newxidmap-epel-7.repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   382  100   382    0     0    336      0  0:00:01  0:00:01 --:--:--   336
+ yum install -y shadow-utils46-newxidmap
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.quelquesmots.fr
 * epel: fr2.rpmfind.net
 * extras: centos.crazyfrogs.org
 * ius: mirror.amsiohosting.net
 * updates: centos.mirror.fr.planethoster.net
vbatts-shadow-utils-newxidmap                                                                                                         | 3.0 kB  00:00:00
vbatts-shadow-utils-newxidmap/x86_64/primary_db                                                                                       | 6.1 kB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package shadow-utils46-newxidmap.x86_64 2:4.6-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                                     Arch                      Version                        Repository                                        Size
=============================================================================================================================================================
Installing:
 shadow-utils46-newxidmap                    x86_64                    2:4.6-4.el7                    vbatts-shadow-utils-newxidmap                     55 k

Transaction Summary
=============================================================================================================================================================
Install  1 Package

Total download size: 55 k
Installed size: 78 k
Downloading packages:
warning: /var/cache/yum/x86_64/7/vbatts-shadow-utils-newxidmap/packages/shadow-utils46-newxidmap-4.6-4.el7.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 86062069: NOKEY
Public key for shadow-utils46-newxidmap-4.6-4.el7.x86_64.rpm is not installed
shadow-utils46-newxidmap-4.6-4.el7.x86_64.rpm                                                                                         |  55 kB  00:00:01
Retrieving key from https://copr-be.cloud.fedoraproject.org/results/vbatts/shadow-utils-newxidmap/pubkey.gpg
Importing GPG key 0x86062069:
 Userid     : "vbatts_shadow-utils-newxidmap (None) <vbatts#[email protected]>"
 Fingerprint: c3d6 a7a0 ec6c 0d68 b33d 9e58 b2b2 93f9 8606 2069
 From       : https://copr-be.cloud.fedoraproject.org/results/vbatts/shadow-utils-newxidmap/pubkey.gpg
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:shadow-utils46-newxidmap-4.6-4.el7.x86_64                                                                                               1/1
  Verifying  : 2:shadow-utils46-newxidmap-4.6-4.el7.x86_64                                                                                               1/1

Installed:
  shadow-utils46-newxidmap.x86_64 2:4.6-4.el7

Complete!
+ cat
+ sysctl --system
* Applying /usr/lib/sysctl.d/00-system.conf ...
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
* Applying /usr/lib/sysctl.d/10-default-yama-scope.conf ...
kernel.yama.ptrace_scope = 0
* Applying /usr/lib/sysctl.d/50-default.conf ...
kernel.sysrq = 16
kernel.core_uses_pid = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.all.promote_secondaries = 1
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
* Applying /etc/sysctl.d/51-rootless.conf ...
user.max_user_namespaces = 28633
* Applying /usr/lib/sysctl.d/60-libvirtd.conf ...
fs.aio-max-nr = 1048576
* Applying /etc/sysctl.d/99-sysctl.conf ...
* Applying /etc/sysctl.conf ...
[root@jaguar shared_account]# su dummy_user
[dummy_user@jaguar shared_account]$ curl -sSL https://get.docker.com/rootless | sh
Could not find records for the current user dummy_user from /etc/subuid . Please make sure valid subuid range is set there.
For example:
echo "dummy_user:100000:65536" >> /etc/subuid
[dummy_user@jaguar shared_account]$ echo "dummy_user:100000:65536" >> /etc/subuid
bash: /etc/subuid: Permission denied
[dummy_user@jaguar shared_account]$ exit
[root@jaguar shared_account]#  echo "dummy_user:100000:65536" >> /etc/subuid
[root@jaguar shared_account]# su dummy_user
[dummy_user@jaguar shared_account]$ curl -sSL https://get.docker.com/rootless | sh
Could not find records for the current user dummy_user from /etc/subgid . Please make sure valid subuid range is set there.
For example:
echo "dummy_user:100000:65536" >> /etc/subgid
[dummy_user@jaguar shared_account]$

I use CentOS.

CentOS Linux release 7.6.1810 (Core)

I you need me to try anything else or to give more info, please let me know.

And thanks for making Docker!

Edge does not install on ubuntu 18.04

user@ubuntu:~$ sh get-docker.sh

Executing docker install script, commit: 36b78b2

  • sudo -E sh -c apt-get update -qq >/dev/null
  • sudo -E sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
  • sudo -E sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -qq - >/dev/null
    Warning: apt-key output should not be parsed (stdout is not a terminal)
  • sudo -E sh -c echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic edge" > /etc/apt/sources.list.d/docker.list
  • [ ubuntu = debian ]
  • sudo -E sh -c apt-get update -qq >/dev/null
  • sudo -E sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
    E: Package 'docker-ce' has no installation candidate

Fedora 26 Workstation installation

Hi all,
I'm getting the following error on Fedora 26 workstation with;

$ curl -sSL 'https://get.docker.com' | sh
main: line 436: [: TwentySix: integer expression expected
+ sudo -E sh -c 'dnf install -y -q dnf-plugins-core'
[sudo] password for kbateman:         
+ sudo -E sh -c 'dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo'
Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
+ '[' edge '!=' stable ']'
+ echo 'Info: Enabling channel '\''edge'\'' for docker-ce repo'
Info: Enabling channel 'edge' for docker-ce repo
+ sudo -E sh -c 'dnf config-manager --set-enabled docker-ce-edge'
+ sudo -E sh -c 'dnf makecache fast'
usage: dnf makecache [-c [config file]] [-q] [-v] [--version]
                     [--installroot [path]] [--nodocs] [--noplugins]
                     [--enableplugin [plugin]] [--disableplugin [plugin]]
                     [--releasever RELEASEVER] [--setopt SETOPTS]
                     [--skip-broken] [-h] [--allowerasing] [-b] [-C]
                     [-R [minutes]] [-d [debug level]] [--debugsolver]
                     [--showduplicates] [-e ERRORLEVEL] [--obsoletes]
                     [--rpmverbosity [debug level name]] [-y] [--assumeno]
                     [--enablerepo [repo]] [--disablerepo [repo] | --repo
                     [repo]] [-x [package]] [--disableexcludes [repo]]
                     [--repofrompath [repo,path]] [--nogpgcheck]
                     [--color COLOR] [--refresh] [-4] [-6] [--downloadonly]
                     [--bugfix] [--enhancement] [--newpackage] [--security]
                     [--advisory ADVISORY] [--bzs BUGZILLA] [--cves CVES]
                     [--sec-severity {Critical,Important,Moderate,Low}]
                     [--timer]
dnf makecache: error: argument timer: invalid choice: 'fast' (choose from 'timer')

Could not fetch Docker for ubuntu-artful

I get the following message when trying to run get-docker.sh in Ubuntu 17.10

# sh get-docker.sh 
# Executing docker install script, commit: 02d7c3c

DEPRECATION WARNING:
    The distribution, ubuntu artful, will no longer be supported in this script as of August 31, 2018.
    If you feel this is a mistake please submit an issue at https://github.com/docker/docker-install/issues/new

+ sh -c apt-get update -qq >/dev/null
E: Failed to fetch https://apt.dockerproject.org/repo/dists/ubuntu-artful/InRelease  403  Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.

Seems that the artful release is missing: https://apt.dockerproject.org/repo/dists/

Docker installation failure

Running the provided commands from the README.md to install docker. Getting error relating to internationalization.

root@rush:~# curl -fsSL https://get.docker.com -o get-docker.sh
root@rush:~# sh get-docker.sh
# Executing docker install script, commit: 2f4ae48
+ sh -c apt-get update -qq >/dev/null
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/i18n/Translation-en  BZ2_bzread: /var/lib/apt/lists/partial/deb.debian.org_debian_dists_stretch_main_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
E: Some index files failed to download. They have been ignored, or old ones used instead.

root@rush:~# uname -a
Linux rush 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I tested in a different machine(arm machine), did get some errors with locale setting but it ended up using fallback settings and managed to install docker successfully.

root@rush2:~# curl -fsSL https://get.docker.com/ | sh
# Executing docker install script, commit: 2f4ae48
+ sh -c apt-get update -qq >/dev/null
+ sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "en_NZ.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 3.)
debconf: falling back to frontend: Readline
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -qq - >/dev/null
+ sh -c echo "deb [arch=arm64] https://download.docker.com/linux/ubuntu xenial stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ [ -n  ]
+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "en_NZ.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 3.)
debconf: falling back to frontend: Readline
+ sh -c docker version
Client:
 Version:           18.09.7
 API version:       1.39
 Go version:        go1.10.8
 Git commit:        2d0083d
 Built:             Thu Jun 27 18:04:32 2019
 OS/Arch:           linux/arm64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.7
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.8
  Git commit:       2d0083d
  Built:            Thu Jun 27 17:23:19 2019
  OS/Arch:          linux/arm64
  Experimental:     false
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.


root@rush2:~# uname -a
Linux rush2 4.15.0-46-generic #49~16.04.1-Ubuntu SMP Tue Feb 12 17:45:52 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux

I am not aware of any preset required when using this script, if there is anything I am missing, please advise.

installer script show EULA if accepting EULA is required

According to https://github.community/t5/GitHub-Actions/What-really-is-docker-3-0-6/td-p/30752 :

chrispat [GitHub Staff] ‎09-05-2019 03:08 PM

There are some very specific clauses in the docker EULA that, according to our lawyers, make it not possible to run a service that uses docker community edition and in our case the hosted runners constitute a service.

If using Docker CE that is installed with this script require accepting Docker EULA, the script should show EULA and ask y/N user input.

If not, the EULA page should be updated for clarification.

On Raspberry Pi, BUILD_EXCLUSIVE directive does not match this kernel/arch

I'm not sure if this is the right place to file the issue, please redirect me elsewhere if it's wrong.

Anyway, on Raspberry Pi 3, installation of docker from get.docker.com fails with error message:

Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive
which does not match this kernel/arch. This indicates that it should
not be built.

Editing /usr/src/aufs-4.9+20161219/dkms.conf and removing the
line

BUILD_EXCLUSIVE_KERNEL="^4.9.*"

then running

sudo apt-get remove -y docker-engine
sudo apt-get install -y docker-engine

fixes the problem as far as I can see.

Steps to reproduce:

  1. Download Raspbian Stretch Lite from https://www.raspberrypi.org/downloads/raspbian/ with release date 2017-09-07 and write to an SD card, fix network etc...
  2. Run the following commands:
sudo apt-get update && sudo apt-get -y upgrade
curl -fsSL get.docker.com -o get-docker.sh
chmod +x get-docker.sh
sudo ./get-docker.sh

Support CentOS 6

I've tested the script on CentOS 6 and it look like it ain't supported.

Error message :

# Executing docker install script, commit: UNKNOWN

ERROR: Unsupported distribution ''


We can get older redhat version in the following file :

/etc/redhat-release

Check the permission of script when download

Hi there!
I think i found a issue, maybe you need to check that.
When you did a curl and download the file, this one dont have permission of execute the script. So, you can add bash chmod 777 to execute file or upload again the file with the correct permission.
I hope this help you . Be docker! Regards

Option to start daemon

I would like to know if it's possible to start the service at the end of the installation, because starting a service is different from a centOS or Ubuntu. What do you guys think ?

missing dependency containerd.io for fedora 29 aarch64

After trying to install the latest nightly of docker-ce on a Raspberry Pi 3 running Fedora 29 it seems that a dependency is not satisfied:

nothing provides containerd.io needed by docker-ce-3:0.0.0.20190323130520.1618664-0.fc29.aarch64

How can I get docker-ce running on my Pi?

Thank you!

Could python be removed to reduce the install footprint?

Please excuse my ignorance if this is a stupid issue request. My understanding is that docker is written in go, so I am curious as to why python installed by this script? I'm not using python so having it installed via python-software-properties or software-properties-common to use docker feels a little superfluous.

I've tried to google search if docker has any python dependencies before opening this issue, but I couldn't see any.

Installation fails if there are errors during apt-get update

Hi, recently I tried to execute get-docker on my Ubuntu machine:

$ uname -a
Linux kornicameister-pc 4.4.0-97-generic #120-Ubuntu SMP Tue Sep 19 17:28:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

and output I got was:

wget -qO- get.docker.com | sudo bash
# Executing docker install script, commit: 490beaa
+ sh -c 'apt-get update -qq >/dev/null'
W: http://repo.cloud.docker.com/ubuntu/dists/dockercloud/InRelease: Signature by key 278FE7333CFF7F8B60B677E85DD27147EF170D1C uses weak digest algorithm (SHA1)
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E074D16EB6FF4DE3
W: The repository 'http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu xenial Release' does not have a Release file.
W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E074D16EB6FF4DE3
E: Failed to fetch http://ppa.launchpad.net/cairo-dock-team/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
W: Some index files failed to download. They have been ignored, or old ones used instead.

after removing problematic entries from /etc/apt/sources.list.d/ the installation went smoothly.
Is this an expected behaviour ?

Docker Image for Sitespeed goes missing!!

Hi,

I started using the docker version on sitespeed and is able to run tests followed by proper reporting.
I started facing a weird issue where on one particular machine, I pull the docker image using

docker pull sitespeedio/sitespeed.io

and i execute a test. So far so good, after few minutes when I execute another test, i get an error saying 'Unable to find image 'sitespeedio/sitespeed.io:latest' locally' and the image gets downloaded again.

When i re-checked the same by looking at docker images on my host, i see that the sitespeed image went missing. I tried multiple ways to restore it by composing a tar file one a different host and extracting it here. But after few mins the image just goes missing and i couldn't find it any where.

I have to do a docker pull everytime i need to use sitespeed. Any pointers here please?

I am sure this is nothing to do with Sitespeed as the same image is pulled and used forever on other hosts. I cannot any difference in the machines too. Please assist!

Support to Linux Mint 19.1

Although the Linux Mint 19.1 is based on Ubuntu 18.04, the docker-install script recognize this distribution as a debian buster/sid.

This was working until recently but started to give me some problems when using vscode, see comment microsoft/vscode-remote-release#1041 (comment)

The https://get.docker.com | sh, when running from a Linux Mint 19.1 should add the ubuntu bionic repo instead of debian buster.

Implement ppc64le for installation script and jenkins builds

@corbin-coleman

Overview

Support for the distributions that we support needs to be added to the SUPPORT_MAP variable here:

s390x-ubuntu-zesty
aarch64-ubuntu-xenial
armv6l-raspbian-jessie
armv7l-raspbian-jessie

Also we should be testing against power as well which should be included like so:

def s390xverifyTargets = [
's390x-verify-install-ubuntu-xenial',
's390x-verify-install-ubuntu-zesty',
]

docker: error starting docker

I try to start docker with

sudo systemctl start docker
I get the error
Error starting daemon: error initializing graphdriver: /var/lib/docker contains several valid graphdrivers: devicemapper, overl

I tried to configure devicemapper. I created the file /etc/docker/daemon.json and I configured with

{
"storage-driver": "devicemapper",
"storage-opts": [
"dm.directlvm_device=/dev/xdf",
"dm.thinp_percent=95",
"dm.thinp_metapercent=1",
"dm.thinp_autoextend_threshold=80",
"dm.thinp_autoextend_percent=20",
"dm.directlvm_device_force=false"
]
}

I get an error in line dm.directlvm_device=/dev/xdf" when I start docker. After that I deleted the file/etc/docker/daemon.json

And now, I get this error.
How can I fix this issue?

Broken link in rootless-install.sh

Hello,

I was trying to install the rootless version of docker by following blog post:
https://engineering.docker.com/2019/02/experimenting-with-rootless-docker/
(I know it is half a year old now, but I could not find other instructions on installation)

Unfortunately, the script fails with:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

I dug in to the script a bit and it looks like the issue is coming from line 316 in rootless-install.sh:

curl -L -o rootless.tgz "$STATIC_RELEASE_ROOTLESS_URL"

because https://master.dockerproject.org/linux/x86_64/docker-rootless-extras.tgz no longer exists, and instead is returning an XML file with the contents.

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>linux/x86_64/docker-rootless-extras.tgz</Key><RequestId>520E9920358F8BDB</RequestId><HostId>38sHuvfQtiXDKtenebEICJXhpyGdLj0GLQ5gcw8WZUlGh38JONd0Vc0cuHQtrHrJmiE853DJqRo=</HostId></Error>

And the tar commands following it is throwing out the original error. I took a quick look around https://master.dockerproject.org/ but I could not figure out what to replace it with.

FROM ubuntu:18.04 (install)

Hello!
Created a Dockerfile file with the following contents

Dockerfile
`
FROM ubuntu:18.04

ENV ATOM_VERSION v1.34.0

RUN apt-get update
RUN apt-get upgrade
RUN apt-get install -y mc
`

Execute the command
docker build .

Error:
`
Sending build context to Docker daemon 4.096kB
Step 1/5 : FROM ubuntu:18.04
18.04: Pulling from library/ubuntu
38e2e6cd5626: Pull complete
705054bc3f5b: Pull complete
c7051e069564: Pull complete
7308e914506c: Pull complete
Digest: sha256:945039273a7b927869a07b375dc3148de16865de44dec8398672977e050a072e
Status: Downloaded newer image for ubuntu:18.04
---> 20bb25d32758
Step 2/5 : ENV ATOM_VERSION v1.34.0
---> Running in b90f8cff3af9
Removing intermediate container b90f8cff3af9
---> 6fe4b836bd73
Step 3/5 : RUN apt-get update
---> Running in dd5f10300f2a
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists...
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Removing intermediate container dd5f10300f2a
---> 6096713fbac9
Step 4/5 : RUN apt-get upgrade
---> Running in f7d3bd4ae978
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Removing intermediate container f7d3bd4ae978
---> 36c0df6989ca
Step 5/5 : RUN apt-get install -y mc
---> Running in df9720f4168a
Reading package lists...
Building dependency tree...
Reading state information...
Package mc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mc' has no installation candidate
The command '/bin/sh -c apt-get install -y mc' returned a non-zero code: 100
`

Tell me please.
Why can not I collect the image?

Docker rootless bin folder

The rootless install scripts install docker in $HOME/bin.

Consider changing that to $HOME/.local/bin, especially since docker already puts files under $HOME/.local/share/docker.

Making this configurable would be great as well. Right now the destination is set in init_vars but also hard coded in the systemd service file.

update the default channel in get.docker.com

Currently, get.docker.com sets the default channel to edge

DEFAULT_CHANNEL_VALUE="edge"

If we continue to plan to use this script, it would be useful to point this to Stable/Nightly instead

Remove support for Debian Wheeze

Docker does not support Debian 7 Wheeze:

Your Linux kernel version 3.2.0-4-amd64 is not supported for running docker. Please upgrade your kernel to 3.10.0 or newer.

Checked on DigitalOcean's Debian 7.11 x64

Please, remove support from script.

Yum failure

Hello

As the picture follown

b83504ee-cb75-4250-b03c-18d77e120d6c

Thank you in advance to repair the problem show from the picture,

Regards.

Dorian ROSSE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.