Comments (3)
$ sudo systemctl start docker
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
$ sudo systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2022-11-26 13:04:11 GMT; 15s ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Process: 19314 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (c>
Main PID: 19314 (code=exited, status=1/FAILURE)
CPU: 264ms
Nov 26 13:04:11 raspberrypi systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Nov 26 13:04:11 raspberrypi systemd[1]: Stopped Docker Application Container Engine.
Nov 26 13:04:11 raspberrypi systemd[1]: docker.service: Start request repeated too quickly.
Nov 26 13:04:11 raspberrypi systemd[1]: docker.service: Failed with result 'exit-code'.
Nov 26 13:04:11 raspberrypi systemd[1]: Failed to start Docker Application Container Engine.
from til.
入れ直してみる。アンインストール。
$ sudo apt remove docker-ce*
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'docker-ce-cli' for glob 'docker-ce*'
Note, selecting 'docker-ce' for glob 'docker-ce*'
Note, selecting 'docker-ce-rootless-extras' for glob 'docker-ce*'
Package 'docker-ce-rootless-extras' is not installed, so not removed
The following packages were automatically installed and are no longer required:
cgroupfs-mount libslirp0 slirp4netns
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
docker-ce docker-ce-cli
0 upgraded, 0 newly installed, 2 to remove and 26 not upgraded.
1 not fully installed or removed.
After this operation, 200 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 115589 files and directories currently installed.)
Removing docker-ce (5:20.10.21~3-0~raspbian-bullseye) ...
Removing docker-ce-cli (5:20.10.21~3-0~raspbian-bullseye) ...
Processing triggers for man-db (2.9.4-2) ...
インストールする。
$ sudo curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
# Executing docker install script, commit: 4f282167c425347a931ccfd95cc91fab041d414f
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c mkdir -p /etc/apt/keyrings && chmod -R 0755 /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/raspbian/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
+ sh -c chmod a+r /etc/apt/keyrings/docker.gpg
+ sh -c echo "deb [arch=armhf signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/raspbian bullseye stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends docker-ce docker-ce-cli containerd.io docker-compose-plugin >/dev/null
E: Sub-process /usr/bin/dpkg returned an error code (1)
エラーが発生。
$ docker -v
Docker version 20.10.21, build baeda1f
インストールはされているっぽい。
$ systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2022-11-26 13:51:29 GMT; 1min 26s ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Process: 26394 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (c>
Main PID: 26394 (code=exited, status=1/FAILURE)
CPU: 404ms
Nov 26 13:51:29 raspberrypi systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Nov 26 13:51:29 raspberrypi systemd[1]: Stopped Docker Application Container Engine.
Nov 26 13:51:29 raspberrypi systemd[1]: docker.service: Start request repeated too quickly.
Nov 26 13:51:29 raspberrypi systemd[1]: docker.service: Failed with result 'exit-code'.
Nov 26 13:51:29 raspberrypi systemd[1]: Failed to start Docker Application Container Engine.
ステータス確認。動いてない。
$ sudo reboot
再起動した。再びステータス確認。
$ systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-11-26 13:53:41 GMT; 3min 6s ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 749 (dockerd)
Tasks: 9
CPU: 893ms
CGroup: /system.slice/docker.service
└─749 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Nov 26 13:53:39 raspberrypi dockerd[749]: time="2022-11-26T13:53:39.545537956Z" level=info msg="ccReso>
Nov 26 13:53:39 raspberrypi dockerd[749]: time="2022-11-26T13:53:39.545579567Z" level=info msg="Client>
Nov 26 13:53:39 raspberrypi dockerd[749]: time="2022-11-26T13:53:39.976548197Z" level=warning msg="Una>
Nov 26 13:53:39 raspberrypi dockerd[749]: time="2022-11-26T13:53:39.980287382Z" level=info msg="Loadin>
Nov 26 13:53:40 raspberrypi dockerd[749]: time="2022-11-26T13:53:40.196582400Z" level=info msg="Defaul>
Nov 26 13:53:40 raspberrypi dockerd[749]: time="2022-11-26T13:53:40.428268882Z" level=info msg="Loadin>
Nov 26 13:53:40 raspberrypi dockerd[749]: time="2022-11-26T13:53:40.910784104Z" level=info msg="Docker>
Nov 26 13:53:40 raspberrypi dockerd[749]: time="2022-11-26T13:53:40.911386622Z" level=info msg="Daemon>
Nov 26 13:53:41 raspberrypi systemd[1]: Started Docker Application Container Engine.
Nov 26 13:53:41 raspberrypi dockerd[749]: time="2022-11-26T13:53:41.099196289Z" level=info msg="API li>
動いている。
$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
9b157615502d: Pull complete
Digest: sha256:faa03e786c97f07ef34423fccceeec2398ec8a5759259f94d99078f264e9d7af
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(arm32v7)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
hello worldできた。
from til.
dpkgのエラーを解決する。参考
どこでこけたか確認。
$ sudo dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
docker-ce Docker: the open-source application container engine
パッケージを再設定する。
$ sudo dpkg --configure docker-ce
Setting up docker-ce (5:20.10.21~3-0~raspbian-bullseye) ...
もう一度確認。
$ sudo dpkg --audit
何も出ない。OK。
from til.
Related Issues (13)
- Unityインストール HOT 3
- docker imageとCPUアーキテクチャ HOT 1
- ラズパイapacheのアクセスログを見る HOT 1
- ラズパイをdatadogで監視する HOT 4
- godocを書く HOT 1
- microk8sを試す HOT 2
- サーバープッシュに触れる
- dotfilesを作ってみる
- ラズパイにGolangをインストール
- midjourney HOT 2
- redmineのダークモードを探す HOT 4
- Nuxt のアプリを Systemd で動かす HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from til.