2017-03-26 18 views
0

私はUbuntu Serverを実行しているドッカーコンテナを持っています。私は、Windows用ドッカーを実行していると私はドッカーとドッカー作曲の次のバージョンがそれぞれインストールされている:Docker for Windowsではシンボリックリンクを作成できませんが、まだサポートされていませんか?

> docker-compose -v 
docker-compose version 1.11.2, build f963d76f 

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

これは私が成功せず、これまでにしようとしているものです:

// 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 

エラーが言い続けるので

> docker exec -u www-data -it dockeramp_webserver_1 ls -la /var/www/html/externals/dojo 
total 80 
drwxr-xr-x 2 root root  0 Mar 25 15:09 . 
drwxr-xr-x 2 root root 4096 Mar 25 15:09 .. 
drwxr-xr-x 2 root root  0 Mar 25 15:09 dijit 
drwxr-xr-x 2 root root  0 Mar 25 15:09 dojo 
drwxr-xr-x 2 root root  0 Mar 25 15:09 dojox 
drwxr-xr-x 2 root root  0 Mar 25 15:09 mmi 
-rwxr-xr-x 1 root root 74047 Mar 25 15:09 tundra.css 

> docker exec -u www-data -it dockeramp_webserver_1 ls -la /var/www/html/public_html/js 
total 24 
drwxr-xr-x 2 root root 4096 Mar 26 14:40 . 
drwxr-xr-x 2 root root 4096 Mar 25 15:11 .. 
-rwxr-xr-x 1 root root 7123 Mar 25 15:09 jquery.PrintArea.js 
-rwxr-xr-x 1 root root 6141 Mar 25 15:11 quoteit_delegate_search.js 

彼らの両方が、私がここで行方不明です何...そう存在する:ディレクトリには、私は、エラーが正しいか間違っている場合はチェックしましたが存在しないのですか? Windowsではまだサポートされていませんか?私は開発チームが以前のバージョンでmfsymlinksというものを私のものより追加したことを発見しました。

+0

私はwin10 bashのLinuxシンボルリンクを作ることができません – dormi330

答えて

0

このコマンドは、/var/www/html/externals/public_htmlが存在しないことを示しています。 /var/www/html/externals/dojo/var/www/html/public_html/jsというフォルダが存在することがわかりました。私はこれがあなたのコマンドの単純なタイプミスであると信じています。

+0

あなたは間違いを犯しました。「externals/public_html」は存在しません。その理由で、私は昨日不満を感じていました。エラーメッセージが正しく、謝罪する – ReynierPM

関連する問題