◆メモ◆
急にdockerコマンドが使えなくなった。。。
# docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
# systemctl start docker
Failed to start docker.service: Unit docker.service is masked.
# systemctl enable docker
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
Failed to enable unit: Unit file /etc/systemd/system/docker.service is masked.
maskがかかったようなので、これで解消
# systemctl unmask docker.service
Removed /etc/systemd/system/docker.service.
# systemctl unmask docker.socket
# systemctl start docker.service
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES