انجمنهای فارسی اوبونتو
تازه کار => انجمن تازهکاران => نویسنده: no_1imit در 27 فروردین 1399، 03:20 بظ
-
سلام, دوستان من طبق https://docs.docker.com/engine/install/ubuntu/ (https://docs.docker.com/engine/install/ubuntu/) مرحله به مرحله جلو رفتم
ولی وقتی
sudo apt-get install docker-ce docker-ce-cli containerd.io
زدم این ارور رو گرفتم
Reading package lists... Done
Building dependency tree
Reading state information... Done
containerd.io is already the newest version (1.2.13-1).
docker-ce-cli is already the newest version (5:19.03.8~3-0~ubuntu-bionic).
docker-ce is already the newest version (5:19.03.8~3-0~ubuntu-bionic).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up docker-ce (5:19.03.8~3-0~ubuntu-bionic) ...
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2020-04-15 14:40:19 +0430; 6ms ago
Docs: https://docs.docker.com
Process: 31066 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 31066 (code=exited, status=1/FAILURE)
dpkg: error processing package docker-ce (--configure):
installed docker-ce package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)
خروجی journalctl -xe
-- Subject: Unit docker.socket has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit docker.socket has finished starting up.
--
-- The start-up result is RESULT.
April 15 14:40:28 system systemd[1]: docker.service: Start request repeated too quickly.
April 15 14:40:28 system systemd[1]: docker.service: Failed with result 'exit-code'.
April 15 14:40:28 system systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit docker.service has failed.
--
-- The result is RESULT.
April 15 14:40:28 system systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'.
من kubuntu 18.04 دارم.
مشکل چی هست؟ ممنون
-
ولی وقتی
sudo apt-get purge docker-ce docker-ce-cli containerd.io
زدم این ارور رو گرفتم
مطمئنی این دستور رو زدی ؟
این دستور مال پاک کردن پکیجها هست ولی ارور احتمالا مال بعد از دستور نصب پکیج هست
-
ممنون, ببخشید اشتباه گذاشته بودم ازبس اینارو تکرار کردم که مشکل حل بشه
اره همون install میزنم نمیشه
پست رو ویرایش کردم.
-
یک بار با این دستور نصب کن
sudo apt install --reinstall docker-ce docker-ce-cli containerd.io
اگر مشکل حل نشد خروجی دستور زیر رو هم بزار
systemctl status docker.service
-
یک بار با این دستور نصب کن
sudo apt install --reinstall docker-ce docker-ce-cli containerd.io
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/62.7 MB of archives.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for docker-ce:amd64
اگر مشکل حل نشد خروجی دستور زیر رو هم بزار
systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-04-15 18:33:49 +0430; 8min ago
Docs: https://docs.docker.com
Main PID: 2213 (dockerd)
Tasks: 13
CGroup: /system.slice/docker.service
└─2213 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
آوریل 15 18:33:47 system dockerd[2213]: time="2020-04-15T18:33:47.548443648+04:30" level=warning msg="Your kernel does not support cgr
آوریل 15 18:33:47 system dockerd[2213]: time="2020-04-15T18:33:47.548461341+04:30" level=warning msg="Your kernel does not support cgr
آوریل 15 18:33:47 system dockerd[2213]: time="2020-04-15T18:33:47.548478664+04:30" level=warning msg="Your kernel does not support cgr
آوریل 15 18:33:47 system dockerd[2213]: time="2020-04-15T18:33:47.549067996+04:30" level=info msg="Loading containers: start."
آوریل 15 18:33:47 system dockerd[2213]: time="2020-04-15T18:33:47.858480777+04:30" level=info msg="Default bridge (docker0) is assigne
آوریل 15 18:33:48 system dockerd[2213]: time="2020-04-15T18:33:48.224895539+04:30" level=info msg="Loading containers: done."
آوریل 15 18:33:49 system dockerd[2213]: time="2020-04-15T18:33:49.304376379+04:30" level=info msg="Docker daemon" commit=afacb8b7f0 gr
آوریل 15 18:33:49 system dockerd[2213]: time="2020-04-15T18:33:49.304733071+04:30" level=info msg="Daemon has completed initialization
آوریل 15 18:33:49 system dockerd[2213]: time="2020-04-15T18:33:49.856067135+04:30" level=info msg="API listen on /var/run/docker.sock"
آوریل 15 18:33:49 system systemd[1]: Started Docker Application Container Engine.
عجیبه درست شده :-| :-|
-
عجیبه درست شده :-| :-|
درست شد؟ یعنی مشکل حل شد؟
-
اره الان دستور
sudo docker run hello-world
که اجرا میکنم مشکلی نداره
ممنون