2018. 8. 30. 21:56
반응형

우분투에 도커를 설치했다가 지우려고 할 때 에러가 뜨면서 지워지지 않았다.

다음과 같은 에러 메세지가 뜨면서


Removing docker.io (17.03.2-0ubuntu2~16.04.1) ...

'/usr/share/docker.io/contrib/nuke-graph-directory.sh' -> '/var/lib/docker/nuke-graph-directory.sh'

invoke-rc.d: could not determine current runlevel

 * Stopping Docker: docker                                                                                              No process in pidfile '/var/run/docker-ssd.pid' found running; none killed.

invoke-rc.d: initscript docker, action "stop" failed.

dpkg: error processing package docker.io (--remove):

 subprocess installed pre-removal script returned error exit status 1

dpkg: error while cleaning up:

 subprocess installed post-installation script returned error exit status 1

Errors were encountered while processing:

 docker.io

E: Sub-process /usr/bin/dpkg returned an error code (1)



다음의 명령어를 통해 지우는데 성공했다.


sudo rm /etc/init.d/docker
sudo rm /etc/rc*/*docker
sudo apt-get remove docker*


반응형