close

[Solved] cannot update snap namespace: cannot create symlink in “/etc/docker”: existing file in the way snap-update-ns failed with code 1

Hello Guys, How are you all? Hope You all Are Fine. Today When I am running any docker command in my ubuntu server and I am facing following error while running docker –help cannot update snap namespace: cannot create symlink in “/etc/docker”: existing file in the way snap-update-ns failed with code 1 in docker. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

When I am running any docker command in my ubuntu server and I am facing following error while running docker –help

cannot update snap namespace: cannot create symlink in "/etc/docker": existing file in the way
snap-update-ns failed with code 1
  1. How To Solve cannot update snap namespace: cannot create symlink in “/etc/docker”: existing file in the way snap-update-ns failed with code 1 Error?

    To Solve cannot update snap namespace: cannot create symlink in “/etc/docker”: existing file in the way snap-update-ns failed with code 1 Error Here look like problem is with Snap-related Issue. I solved this error in my ubuntu server just follow this command. sudo rm -rf /etc/docker sudo snap refresh

  2. cannot update snap namespace: cannot create symlink in “/etc/docker”: existing file in the way snap-update-ns failed with code 1

    To Solve cannot update snap namespace: cannot create symlink in “/etc/docker”: existing file in the way snap-update-ns failed with code 1 Error Here look like problem is with Snap-related Issue. I solved this error in my ubuntu server just follow this command. sudo rm -rf /etc/docker sudo snap refresh

Solution 1: Use this command

Here look like problem is with Snap-related Issue. I solved this error in my ubuntu server just follow this command.

  sudo rm -rf /etc/docker
  sudo snap refresh

Solution 2: Just remove that key.json file

Just remove that key.json file, And also need to remove the directory /etc/docker too. Follow this command.

sudo rm -rf /etc/docker
sudo snap refresh

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment