Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerd-configuration-options - Unable to delete docker from UBUNTU 16.04 LTS #12

Closed
shashidharpattar007 opened this issue Apr 30, 2018 · 5 comments
Assignees
Labels
enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. good first issue Good for newcomers question Further information is requested

Comments

@shashidharpattar007
Copy link

Hi,
I ran
$ ./setup-dockerd.sh

./setup-dockerd.sh 49 [INFO]: Changes made to
/etc/docker/dockerd-configuration-file will be added to Upstart and
Systemd configuration files for dockerd.

./setup-dockerd.sh 76 [INFO]: Update files for dockerd (Upstart and SysVinit
configuration file) for Ubuntu 14.04.
./setup-dockerd.sh 89 [INFO]: Copy /etc/docker/docker.org to
/etc/docker/docker without Custom_dockerd_Configuration_File section.
./setup-dockerd.sh 92 [INFO]: Append /etc/docker/dockerd-configuration-file
onto /etc/docker/docker.
./setup-dockerd.sh 95 [INFO]: Move /etc/docker/docker to /etc/default/docker
./setup-dockerd.sh 98 [INFO]: dockerd (Upstart and SysVinit configuration
file) for Ubuntu 14.04 has been updated.

./setup-dockerd.sh 99 [INFO]: If you are using upstart, Run
'sudo service docker restart' for dockerd to read /etc/default/docker.

./setup-dockerd.sh 106 [INFO]: Update files for dockerd (systemd configuration
file) on Ubuntu 16.04.
/etc/docker/start-dockerd-with-systemd.sh 113 [INFO]: Creating
/etc/docker/10-override.conf file.
/etc/docker/start-dockerd-with-systemd.sh 121 [INFO]: 10-override.conf move
to /etc/systemd/system/docker.service.d.
/etc/docker/start-dockerd-with-systemd.sh 127 [INFO]: Done

./setup-dockerd.sh 116 [INFO]: If you are using systemd, Run
'sudo systemctl enable dockerd-configuration-file.service'
to start on boot.
./setup-dockerd.sh 117 [INFO]: Run 'sudo systemctl enable docker'
to start on boot.
./setup-dockerd.sh 118 [INFO]: Run 'sudo systemctl restart docker'

After that I tried removing the docker but it is throwing an error telling

$ sudo apt-get remove docker*
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker-scripts

Can you please let me know how can I resolve it. I want to remove the scripts and docker completely so that I can re install everything. Please help.

Thanks,
Shashi

@shashidharpattar007
Copy link
Author

Unable to restart docker and this issue occurred after I ran the script.
$ systemctl restart docker
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

@BradleyA BradleyA self-assigned this May 5, 2018
@BradleyA
Copy link
Owner

BradleyA commented May 5, 2018

What version of Docker are you using?

@BradleyA BradleyA closed this as completed May 5, 2018
@BradleyA
Copy link
Owner

BradleyA commented May 5, 2018

What is the output from the command
systemctl status docker.service

@BradleyA BradleyA reopened this May 5, 2018
@BradleyA
Copy link
Owner

BradleyA commented May 8, 2018

I have added a script for you to use to remove the scripts and files. Then you should be able to remove or purge docker from your system. Not knowing which version of docker you have installed or the output from systemctl status docker.service, it is challenging for me to reproduce this incident. Try these steps to remove docker 18.04.0-ce from an Ubuntu 16.04 system using systemd, but first download the script

 curl -L https://api.github.com/repos/BradleyA/docker-scripts/tarball | tar -xzf - --wildcards */u* ; mv BradleyA-docker-scripts*/dockerd-configuration-options/u* . ; rm -rf BradleyA-docker-scripts-*/

1 sudo ./uninstall-dockerd-scripts.sh
2 sudo systemctl restart docker
3 sudo systemctl stop docker
4 sudo apt-get purge docker-ce

Let me know if you continue to need help.

@BradleyA BradleyA added enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. good first issue Good for newcomers question Further information is requested labels May 8, 2018
@BradleyA
Copy link
Owner

BradleyA commented May 16, 2018

I'm closing this issue because I have not heard back from you about the solution offered. If this solution did not fix your incident, please feel free to reopen this issue or open a new issue.

@BradleyA BradleyA changed the title Unable to delete docker from UBUNTU 16.04 LTS dockerd-configuration-options - Unable to delete docker from UBUNTU 16.04 LTS May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. good first issue Good for newcomers question Further information is requested
Development

No branches or pull requests

2 participants