You are not logged in.

#1 2015-02-24 09:40:02

cosmicnag
Member
From: Mumbai, India
Registered: 2015-02-24
Posts: 5

[SOLVED ]Cant start Docker

I installed docker (and bridge-utils) from pacman, as described in the wiki link.

https://wiki.archlinux.org/index.php/Docker

However, when trying to enable and start the systemd service :

~ ❯❯❯ sudo systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2015-02-24 14:52:04 IST; 2s ago
     Docs: http://docs.docker.com
  Process: 3470 ExecStart=/usr/bin/docker -d -H fd:// (code=exited, status=1/FAILURE)
 Main PID: 3470 (code=exited, status=1/FAILURE)

Feb 24 14:52:04 archer docker[3470]: time="2015-02-24T14:52:04+05:30" level="info" msg="+job serveapi(fd://)"
Feb 24 14:52:04 archer docker[3470]: time="2015-02-24T14:52:04+05:30" level="info" msg="Listening for HTTP on fd ()"
Feb 24 14:52:04 archer docker[3470]: time="2015-02-24T14:52:04+05:30" level="fatal" msg="invalid character '\\x00' looking for beginning of value"
Feb 24 14:52:04 archer systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Feb 24 14:52:04 archer systemd[1]: Unit docker.service entered failed state.
Feb 24 14:52:04 archer systemd[1]: docker.service failed.

I'm on the latest linux kernel 3.18.6-1. Any help is greatly appreciated. Also the bridge module is loaded (had to modprobe)

Last edited by cosmicnag (2015-02-28 09:32:01)

Offline

#2 2015-02-24 21:35:48

esdaniel
Member
From: Paris
Registered: 2010-02-01
Posts: 58
Website

Re: [SOLVED ]Cant start Docker

Sometimes, something is better than nothing, so until a more expert person provides you guidance I'd like to try and help a bit. My suspicion is that your LXC config needs attention, note well the point in the wiki:

Docker 0.9.0 -- 1.2.x and LXC
Since version 0.9.0 Docker provides a new way to start containers without relying on LXC called libcontainer.
LXC may be removed in near future however, [1] ...

Then see the link re: however -> https://github.com/docker/docker/pull/5797

HTH.

Offline

#3 2015-02-24 22:08:21

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [SOLVED ]Cant start Docker

Just to be clear, what exactly did you do after installing to enable and start the service? Also, did you edit the .service file at all? Can you post it in here?


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#4 2015-02-25 09:21:13

cosmicnag
Member
From: Mumbai, India
Registered: 2015-02-24
Posts: 5

Re: [SOLVED ]Cant start Docker

nullified wrote:

Just to be clear, what exactly did you do after installing to enable and start the service? Also, did you edit the .service file at all? Can you post it in here?

Posting the output, no change made by myself :

~ ❯❯❯ cat /usr/lib/systemd/system/docker.service                                                                                                                                ⏎
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.com
After=network.target docker.socket
Requires=docker.socket

[Service]
ExecStart=/usr/bin/docker -d -H fd://
MountFlags=slave
LimitNOFILE=1048576
LimitNPROC=1048576

[Install]
WantedBy=multi-user.target

Offline

#5 2015-02-25 16:01:28

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [SOLVED ]Cant start Docker

What is the output of

systemctl status docker.socket

It looks like the service is failing because something is wrong with the socket. You shouldn't have to enable the socket yourself.


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#6 2015-02-26 09:43:31

cosmicnag
Member
From: Mumbai, India
Registered: 2015-02-24
Posts: 5

Re: [SOLVED ]Cant start Docker

~ ❯❯❯ systemctl status docker.socket
● docker.socket - Docker Socket for the API
   Loaded: loaded (/usr/lib/systemd/system/docker.socket; disabled; vendor preset: disabled)
   Active: active (listening) since Thu 2015-02-26 13:39:59 IST; 1h 32min ago
   Listen: /var/run/docker.sock (Stream)

Seems to be on ....

Offline

#7 2015-02-26 13:58:46

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [SOLVED ]Cant start Docker

Is there anything unusual about your system setup that might be relevant. About the network, etc.?


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#8 2015-02-26 17:55:06

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED ]Cant start Docker

Ok, let's start over ....  stop and disable the docker service and socket, uninstall docker, delete /var/lib/docker and /run/docker.{pid,sock} . This should start you off fresh. You can leave yourself in the docker group if you're already there. Now:

# pacman -Syu docker
# systemctl enable docker.service
# systemctl start docker.service

Then if that still doesn't work, try starting docker manually with the same options in the systemd service. Post the result of journalctl -ru docker.service.

Scott

Offline

#9 2015-02-27 09:44:03

cosmicnag
Member
From: Mumbai, India
Registered: 2015-02-24
Posts: 5

Re: [SOLVED ]Cant start Docker

Thanks Scott,

It works now. The only additional steps I did was delete the stuff u asked me too.

Offline

#10 2015-02-27 13:53:26

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED ]Cant start Docker

Nice! Now just edit your first post and mark as solved.

Scott

Offline

#11 2021-12-22 08:40:09

Charass
Member
Registered: 2021-12-22
Posts: 1

Re: [SOLVED ]Cant start Docker

I had the same issue after the fresh installation of docker. I just enabled docker.service using systemctl and rebooted the machine and docker.service was running successfully.

Offline

#12 2021-12-22 09:52:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,410

Re: [SOLVED ]Cant start Docker

Please pay attention to the dates and don't revive 6 year old solved threads.

Closing.

Offline

Board footer

Powered by FluxBB