Problem installing Docker Ubuntu, step related to command "pub" (Ubuntu 18.04) - docker

My ubuntu version:
No LSB modules are available./
Distributor ID: Ubuntu /
Description: Ubuntu 18.04.3 LTS /
Release: 18.04 /
Codename: bionic
To install Docker Engine - Community, you need the 64-bit version of one of these Ubuntu versions:
Disco 19.04
Cosmic 18.10
Bionic 18.04 (LTS) (Mine)
Xenial 16.04 (LTS)
Steps I followed:
Uninstall old versions
$ sudo apt-get remove docker docker-engine docker.io containerd runc
Update the apt package index:
$ sudo apt-get update #HasErrors (2)
(1) Err:14 https://dl.bintray.com/rabbitmq/debian $distribution Release
404 Not Found [IP: 3.124. ..........]
------------------------------------------------
(2) E: The repository 'https://dl.bintray.com/rabbitmq/debian $distribution Release' does not have a Release file.
In consequence: When I get to step 3 in the webpage: https://docs.docker.com/install/linux/docker-ce/ubuntu/
$ sudo apt-key fingerprint 0EBFCD88
pub rsa4096 2017-02-22 [SCEA]
9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid [ unknown] Docker Release (CE deb) <docker#docker.com>
sub rsa4096 2017-02-22 [S]
I get this error:
Command 'pub' not found, did you mean:
command 'hub' from snap hub (v2.13.0)
command 'dub' from snap dub (1.15.0)
command 'pcb' from deb pcb-gtk
command 'pcb' from deb pcb-lesstif
command 'pua' from deb pglistener
command 'pudb' from deb python-pudb
command 'puf' from deb puf
command 'pdb' from deb python
command 'dub' from deb dub
command 'publ' from deb atfs
See 'snap info <snapname>' for additional versions.
I just want to install Docker for Ubuntu and i am a little stuck here

Instead of installing from the repository, why don't you try doing it directly.
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
If this works, you will notice it only works with sudo the workaround for this issue is mentioned here
Let me know if this doesn't work! I'm also quite confused as to why your errors include RabbitMQ when you are trying to install docker on ubuntu?

Related

unable to verify that docker engine is installed by reaching pull rate limit

I wanted to install docker on my laptop to test and run my web applications on it's containers instead of virtual environment (I am running ubuntu desktop version 20.04 LTS and using pipenv for virtual environment). After signing up at hub.docker I went to https://docs.docker.com/engine/install/ubuntu/(hub.docker manual to install docker on ubuntu), I decided to install using the repository and typed following commands in terminal
1.sudo apt-get update
2.sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
3.curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4.apt-key fingerprint 0EBFCD88
after running last command I got desired result which was
" pub rsa4096 2017-02-22 [SCEA]
9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid [ unknown] Docker Release (CE deb) docker#docker.com
sub rsa4096 2017-02-22 [S]"
As my system is amd64 I continued by
5.sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
6.sudo apt-get update
7.sudo apt-get install docker-ce docker-ce-cli containerd.io
8.sudo docker run hello-world
then at this point I got
"Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
See 'docker run --help'."
Questions
Did I do anything wrong in installation process?
How can I run to pull rate limit when I have just installed it?
Have docker correctly installed on my laptop? (when I type docker --version in terminal I get "Docker version 20.10.2, build 2291f61"
What should I do now?
I just installed docker myself and encountered the same error.
I don't think you have installed it wrong (since I'm a newbie myself I cannot confirm it 100%), but I solved this error by creating an account in docker website and then logged-in from CLI.
to create an account go to: https://www.docker.com/pricing
and then use signup for free.
To login through CLI type:
docker login -u your-username
and then it asks for your password, and then you are good to go!

Ubuntu 14.04 gnutls_handshake failed

While trying to install mkl library in Ubuntu 14.04 docker image, I am getting a gnutls_handshake failed error
To reproduce
docker pull mxnetci/publish.ubuntu1404_cpu
docker run -it mxnetci/publish.ubuntu1404_cpu sh
Install intel mkl
wget -qO - wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB | apt-key add -
sh -c "echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list"
apt-get update
Error
Err http://apt.repos.intel.com all/main amd64 Packages
gnutls_handshake() failed: Handshake failed
Refer steps : https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-apt-repo
Last version of MKL that supports Ubuntu 14.04 is MKL2018
https://software.intel.com/content/www/us/en/develop/articles/intel-math-kernel-library-intel-mkl-2018-system-requirements.html
Post that, MKL doesn't support Ubuntu 14.04 anymore.
https://software.intel.com/content/www/us/en/develop/articles/intel-math-kernel-library-intel-mkl-2020-system-requirements.html
https://software.intel.com/content/www/us/en/develop/articles/intel-math-kernel-library-intel-mkl-2019-system-requirements.html
the problem here is related to installation. MKL's system requirements contain only those OS's which are validated by this version of mkl. It means that if you copy mkl's binaries to requested OS, we expect MKL will work on Ubuntu v14. The same questions were regarding RH5 support, as an example.

Installing docker-ce on Fedora 28

According to docker website, installation for Fedora should be as follow:
https://docs.docker.com/install/linux/docker-ce/fedora/#set-up-the-repository
However these instruction does not work for Fedora, and you get a frustrating message "Nothing to be done"
So how can I install Docker-ce on Fedora 28
From fedora 28 only the edge, test and nightly version are available.
To install docker-ce edge you can enable the edge repo:
dnf config-manager --set-disabled docker-ce-stable
dnf config-manager --set-enabled docker-ce-edge
dnf install docker-ce
At the writing of this answer, the repo of Docker did not contain a stable version for Fedora 28
The work around is to call:
sudo dnf install https://download.docker.com/linux/fedora/27/x86_64/stable/Packages/docker-ce-18.03.1.ce-1.fc27.x86_64.rpm
This will download the latest stable version at the writing of these lines.
Hope Docker will set a repo for Fedora 28 soon
I followed below steps on Fedora 28
Install DNF Plugins package
$ sudo dnf -y install dnf-plugins-core
--
Last metadata expiration check: 0:59:06 ago on Thu 05 Jul 2018 21:38:55 CDT.
Package dnf-plugins-core-2.1.5-4.fc28.noarch is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
Setup stable repository
$ sudo 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
Enable the edge and test repositories
$ sudo dnf config-manager --set-enabled docker-ce-edge
$ sudo dnf config-manager --set-enabled docker-ce-test
Install Docker CE
$ sudo dnf install docker-ce
....
Userid : "Docker Release (CE rpm) <docker#docker.com>"
Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
From : https://download.docker.com/linux/fedora/gpg
Start docker
$ sudo systemctl start docker
Verify installation
$ sudo docker run hello-world
If all goes well you should get
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
9bb5a5d4561a: Pull complete
Digest: sha256:3e1764d0f546ceac4565547df2ac4907fe46f007ea229fd7ef2718514bcec35d
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
installation for Fedora should be as follow
Fedora 28: A basic, simple way of getting docker-ce ...
cd /etc/yum.repos.d/
# dnf install https://download.docker.com/linux/fedora/docker-ce.repo
# dnf install docker-ce
You get version "18.03.1.ce.el7.centos" , I.e. the 'Enterprise' version.
EDIT : Also see the answer from #Sagi Forbes.

How to install docker-engine 1.13 on debian Jessie

Following the official documentation from Docker I get only docker-engine 1.12
# apt-cache policy docker-engine
docker-engine:
Installed: 1.12.4-0~debian-jessie
Candidate: 1.12.5-0~debian-jessie
Version table:
1.12.5-0~debian-jessie 0
500 https://apt.dockerproject.org/repo/ debian-jessie/main amd64 Packages
*** 1.12.4-0~debian-jessie 0
500 https://apt.dockerproject.org/repo/ debian-jessie/main amd64 Packages
100 /var/lib/dpkg/status
How can I install/upgrade to 1.13 ?
I need docker prune system https://stackoverflow.com/a/39860665/3313834
Docker has not released 1.13 yet. See the release notes for details on new releases. To get on the RC of 1.13, switch to the testing branch.
You can install docker 1.13.0-rc4 by running:
curl -fsSL https://test.docker.com/ | sh

Salt: 'dockerng' __virtual__ returned False

I have Debian Jessie and I'm trying to manage Docker containers with Salt dockerng. But when I try for example this state:
# file: docker_demo.sls
hello-world:
dockerng.image_present
Then sudo salt '*' state.highstate fails:
----------
ID: hello-world
Function: dockerng.image_present
Result: False
Comment: State 'dockerng.image_present' was not found in SLS 'docker_demo'
Reason: 'dockerng' __virtual__ returned False
Started:
Duration:
Changes:
How can I fix this so dockerng.image_present can pull the image, dockerng.running can run Docker containers etc.?
The dockerng module executed by Salt minion communicates with Docker daemon over REST API using docker-py (not the CLI command docker).
The error message 'dockerng' __virtual__ returned False is a little bit misleading, but if you see the source code, it returns False because it cannot import Pyhon module docker. So this Python package must be installed.
There are packages in Debian repository: python-docker and python3-docker. But both are incompatible with the recent docker-engine (installed from APT repository deb https://apt.dockerproject.org/repo debian-jessie).
So the solution is to uninstall python-docker package if installed and to install the latest docker-py using pip:
sudo apt-get install python-pip
sudo pip install docker-py
Or use this Salt state:
python-pip:
pkg.installed
docker-py:
pip.installed:
- require:
- pkg: python-pip
Or just run
salt myminion pip.install docker-py
The python-docker package from Debian Stretch (now testing, should become Debian stable in 2017) seems to be working OK.

Resources