Laradockの環境で画像投稿を実装するために以下のコマンドを実行しシンボリックリンクをしました。
docker-compose exec workspace php artisan storage:link
workspaceコンテナで実行したら以下のエラーが出ました。
ErrorException : symlink(): Protocol error at /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:263 259| */ 260| public function link($target, $link) 261| { 262| if (! windows_os()) { > 263| return symlink($target, $link); 264| } 265| 266| $mode = $this->isDirectory($target) ? 'J' : 'H'; 267| Exception trace: 1 symlink("/var/www/html/storage/app/public", "/var/www/html/public/storage") /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:263 2 Illuminate\Filesystem\Filesystem::link("/var/www/html/storage/app/public", "/var/www/html/public/storage") /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/StorageLinkCommand.php:35 Please use the argument -v to see more details.
管理者権限でDokerターミナルを立ち上げ同じコマンドを実行しましたが結果は同じでした。
どうかよろしくお願いします。
あなたの回答
tips
プレビュー