You are not logged in.
Pages: 1
Topic closed
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
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
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
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
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
~ ❯❯❯ 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
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
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
Thanks Scott,
It works now. The only additional steps I did was delete the stuff u asked me too.
Offline
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
Please pay attention to the dates and don't revive 6 year old solved threads.
Closing.
Offline
Pages: 1
Topic closed