0 کاربر و 4 مهمان درحال مشاهده موضوع.
sudo apt-get install docker-ce docker-ce-cli containerd.io
Reading package lists... DoneBuilding dependency tree Reading state information... Donecontainerd.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] ySetting 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 1Errors were encountered while processing: docker-ceE: Sub-process /usr/bin/dpkg returned an error code (1)
-- 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'.
ولی وقتی کد: [انتخاب]sudo apt-get purge docker-ce docker-ce-cli containerd.ioزدم این ارور رو گرفتم
sudo apt-get purge docker-ce docker-ce-cli containerd.io
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.ioReading package lists... DoneBuilding dependency tree Reading state information... Done0 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