Docker for Windows error: “Failed to create symbolic link”

0 votes

I’m new to docker and I’ve installed the latest version of docker for windows, below is the version:

> docker-compose -v
docker-compose version 1.11.2, build f963d76f
> docker -v
Docker version 17.03.1-ce-rc1, build 3476dbf

I have tried the following, but I’m unable to proceed because I get an error which says, “Failed to create a symbolic links ”

// The dojo linked file exists so I've tried to update it as per this answer (http://stackoverflow.com/a/1951752/719427)
> docker exec -it dockeramp_webserver_1 ln -sf /var/www/html/externals/dojo /var/www/html/externals/public_html/js/dojo
ln: failed to create symbolic link '/var/www/html/externals/public_html/js/dojo': No such file or directory
// I have deleted the previous linked file and then I tried to create a new one
> docker exec -it dockeramp_webserver_1 ln -s /var/www/html/externals/dojo /var/www/html/externals/public_html/js/dojo
ln: failed to create symbolic link '/var/www/html/externals/public_html/js/dojo': No such file or directory
// removed the directory name from the link name
> docker exec -it dockeramp_webserver_1 ln -s /var/www/html/externals/dojo /var/www/html/externals/public_html/js    
ln: failed to create symbolic link '/var/www/html/externals/public_html/js': No such file or directory

What am I missing here? I’m stuck on this issue, any help would be appreciated.

Nov 26, 2018 in DevOps & Agile by Tyrion anex
• 8,310 points
249 views

1 answer to this question.

0 votes
The error is telling you that  /var/www/html/externals/public_html does not exist. You only showed that the /var/www/html/externals/dojo and /var/www/html/public_html/js folders exist.

This is a small typo mistake.
answered Nov 26, 2018 by Sophie may
• 9,870 points

Related Questions In DevOps & Agile

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Docker for Windows error: “kubectl context missing”

There is an issue with docker for ...READ MORE

answered Aug 27, 2018 in DevOps & Agile by Tyrion anex
• 8,310 points
48 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,300 points
265 views
0 votes
1 answer

Error: Unable to access elasticsearch in docker for windows

This is simple, just follow the below ...READ MORE

answered Sep 3, 2018 in DevOps & Agile by Sophie may
• 9,870 points
86 views