Bug 1058985

Summary: Docker fail to start on login
Product: [openSUSE] openSUSE Distribution Reporter: Forgotten User U7sZDHpPdJ <forgotten_U7sZDHpPdJ>
Component: YaST2Assignee: E-mail List <yast2-maintainers>
Status: RESOLVED INVALID QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: forgotten_U7sZDHpPdJ, igonzalezsosa, jreidinger, kanderssen, vrothberg
Version: Leap 42.3Flags: kanderssen: needinfo? (forgotten_U7sZDHpPdJ)
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 42.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: systemctl status docker

Description Forgotten User U7sZDHpPdJ 2017-09-16 17:00:12 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36
Build Identifier: 

Docker:17.04-ce

Docker fails to automatically start on login, even though i have enable it on systemd:

systemctl enable docker

After login, i can manually start it with:

systemctl start docker

and it is working as expected. I have attached the status of the service for reference.

Reproducible: Always

Steps to Reproduce:
1. install docker
2. enable it to automatically start on boot 
3. execute a docker command after login
Comment 1 Forgotten User U7sZDHpPdJ 2017-09-16 17:00:52 UTC
Created attachment 740821 [details]
systemctl status docker
Comment 2 Forgotten User U7sZDHpPdJ 2017-09-17 18:57:08 UTC
It seems that by default on installation, openSUSE leap adds "suse" as domain name. When i removed it from yast -> Network settings, docker service is autostarted in login. So the issue is with the installer which adds a default suffix on hostname.
Comment 3 Valentin Rothberg 2017-10-02 12:56:03 UTC
Re-assigning to Yast team (see comment#2).
Comment 4 Imobach Gonzalez Sosa 2017-10-03 13:22:18 UTC
Knut, please, could you have a look?
Comment 5 Josef Reidinger 2017-12-14 13:48:33 UTC
knut ping
Comment 6 Knut Alejandro Anderssen González 2017-12-14 14:08:14 UTC
With the current logs, I can't figure out what is happening,

there are other docker issues reported with the same error messages and if the default hostname used by linurc is not valid (linuxrc sets it) then it is the first issue I get from it.

https://github.com/openSUSE/linuxrc/blob/master/linuxrc_hostname.md

So what is the expected fix? modify the default domain?
Comment 7 Knut Alejandro Anderssen González 2017-12-14 14:33:29 UTC
I have just installed a Leap 42.3 and booted without update, installed docker, enabled docker and restarted.

Docker starts fine and can't see anything relevant with journalctl.

Could you please confirm that it still happens and attach the complete output of journalctl -u docker.service.

Thn!
Comment 8 Forgotten User U7sZDHpPdJ 2017-12-17 06:40:55 UTC
I replaced my former btrfs installation with an ext4 one for performance reasons and I reinstall OpenSSL 42.3. Now it seems to be working as expected. I don,t know if there was something fixed in the meanwhile, but now it is working.
Comment 9 Knut Alejandro Anderssen González 2017-12-17 18:57:06 UTC
(In reply to Diamantis Karagkiaouris from comment #8)
> I replaced my former btrfs installation with an ext4 one for performance
> reasons and I reinstall OpenSSL 42.3. Now it seems to be working as
> expected. I don,t know if there was something fixed in the meanwhile, but
> now it is working.

Great, so, will consider it as invalid or fixed by now but be free to reopen it if you detect it is still failing in other installations you try.

BTW thnx for reporting it ;)