"Error saving credentials" in docker login - docker

I am executing the next command:
docker login
And the result that I get is:
Error saving credentials: error storing credentials - err: exit status 1, out:
`Cannot autolaunch D-Bus without X11 $DISPLAY`
I am using an instance in Oracle Cloud that is:
Canonical-Ubuntu-16.04-2018.06.18-0
I tried fix it tipping the next command:
sudo apt-get install xorg openbox
Any idea about what is happening here??

This tip works for me (Ubuntu 18.04):
sudo apt update
sudo apt -V install gnupg2 pass

for me helped this comment
https://github.com/docker/compose/issues/6023
don't do apt install docker-compose and if you did, remove it and its
dependencies
sudo apt remove docker-compose -y && sudo apt autoremove

Today i had the same issue after installing docker.io and docker-compose on a fresh ubuntu.
After reading the link posted by Ryabchenko Alexander i tried the command he posted.
I then found out, if you remove docker-compose and reinstalling it, everything started to work like expected.
So my solution to overcome this issue in Ubuntu 18.04:
sudo apt remove docker-compose -y && sudo apt autoremove
sudo apt install docker-compose -y
Please check out the answer of Ryabchenko Alexander for the link and reasons why this issue exist.

Fixed, it was a problem that dinstalling docker-compose some libraries were removed

Related

How to install Docker on Fedora 35?

I tried to install Docker on Fedora 35 with the following commands:
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io
But, I got the 404 error for the repository:
errors during downloading metadata for repository ‘docker-ce-stable’:
Status code: 404 for https://download.docker.com/linux/fedora/35/x86_64/stable/repodata/repomd.xml (IP: 13.227.108.44)
Error: Falha ao baixar os metadados do repo. ‘docker-ce-stable’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Does anyone know how to solve this?
Someone on the official Fedora Forum managed to resolve it. So I'll put his answer here (https://ask.fedoraproject.org/t/error-on-install-docker-in-fedora-35/17165):
That’s because docker have not yet made a repository for Fedora 35. So for the time being, you’ll have to use their F34 packages. You’ll need to tweak your /etc/yum.repos.d/docker-ce.repo file to replace $releasever (which on Fedora 35 is 35) with 34.
So, it’ll look like this:
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/fedora/34/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/fedora/gpg
...
I check from time to time to see if docker have made a repo from F35 yet. When that happens, we’ll need to undo this change.
did you tried these ?
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io

docker nothing to do, and docker commnad not found

i followed below steps on centos 7 machine to install docker but it says nothing to do and when i run docker command it says that command not found.
i followed below steps on centos 7 machine to install docker but it says nothing to do and when i run docker command it says that command not found.
**sudo yum check-update
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker**
on some other machine same commands worked but its having some strange behaviour on this machine.
running following steps solved the issue:
some how firewall started creating problem , so i had to check
the internet connection as below:
curl --location-trusted --ntlm --user "xyz" www.google.com enter password
yum install http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-3.el7.noarch.rpm
yum -y install docker-ce

docker - docker-credential-secretservice on RHEL

I'm on a RHEL7.6 attempting to run
docker-credential-secretservice
I've installed it by
wget https://github.com/docker/docker-credential-helpers/releases/download/v0.6.0/docker-credential-secretservice-v0.6.0-amd64.tar.gz && tar -xf docker-credential-secretservice-v0.6.0-amd64.tar.gz && chmod +x docker-credential-secretservice && mv docker-credential-secretservice /usr/local/bin/
when i try to run it by going
docker-credential-secretservice
error:
docker-credential-secretservice: error while loading shared libraries: libsecret-1.so.0: cannot open shared object file: No such file or directory
I thought the libsecret-1.so.0 wasn't installed so i installed it
sudo yum install libsecret-1.so.0
but still gives the same error.
question
how do i install docker-credential-secretservice?
To fix this issue, you need to install libsecret.
sudo yum install libsecret -y
This will install the lastest version of libsecret and you will be able to use it as a credential helper for Docker.
Once installed, you can test it with
docker-credential-secretservice version
On Ubuntu, using apt, I had to specify:
sudo apt install libsecret-1-0
Then docker-credential-secretservice ran with no issue.

How to repair docker or reinstall it?

I have done this command and now docker don't work...
How can I repair (or reintall) docker properly?
sudo rm -rf /var/lib/docker/aufs
I have try to do
apt-get install --reinstall docker
but it didn't work
this is my error message:
docker: Error response from daemon: open /var/lib/docker/aufs/layers/c14f6c4750a2a3fcfa33e6f33041bf4fce087d314fb413ee3662e6e7035fea75: no such file or directory.
Try this on ubuntu with docker-ce
sudo apt-get install --reinstall docker-ce
That was seen only with older versions of docker (issue 22343), but also more recently with 16.04.1 LTS, Docker version 1.12.1, build
It depends on which docker you are using, and on which host OS.
If you are on Ubuntu for instance, try removing docker completely (if you don't have any local work that you would want to keep)
sudo apt-get purge docker-engine
sudo apt-get autoremove --purge docker-engine
rm -rf /var/lib/docker # This deletes all images, containers, and volumes
Then install the latest docker 13.1 and see if the issue persists.
Again, this is only if you are ready to start again from a clean state, reinstalling Docker entirely.
Do not execute rm -rf /var/lib/docker without considering the consequences, or in a production environment(!).
rakeshz's answer using an apt-get install --reinstall is a safer first step.

How to start tarantool console?

I've installed tarantool (tarantool_box) and tarantool-client. I can start tarantool
/usr/bin/tarantool_box --background
but when I try to connect to server
/usr/bin/tarantool
I see only admin console
localhost>
and can only use some commands and sql-like queries. I can not use any of commands from user guide, and almost all commands which start with lua fail:
lua console = require('console')
---
error: 'Lua error: [string "local console = require(''console'')"]:1: attempt to call global ''require'' (a nil value)'
...
Solution, for clean Debian wheezy, found on tarantool github https://github.com/tarantool/tarantool
sudo apt-get update
sudo apt-get upgrade
after update
sudo apt-get install git
sudo apt-get install build-essential
sudo apt-get install libreadline-dev
sudo apt-get install cmake
sudo git clone https://github.com/tarantool/tarantool
cd ./tarantool
sudo git submodule update --init --recursive
sudo cmake .
sudo make
after build
sudo ./tarantool/src/tarantool
Usually I use this command for docker version of tarantool/tarantool:
tarantoolctl connect 3301
But you can also use docker directly
docker exec -it tarantool_1 console

Resources