{"id":1298,"date":"2024-12-24T15:41:19","date_gmt":"2024-12-24T06:41:19","guid":{"rendered":"https:\/\/plusload.net\/?p=1298"},"modified":"2024-12-27T09:18:53","modified_gmt":"2024-12-27T00:18:53","slug":"docker-container%e3%81%aeue5-4-4%e3%81%a7project%e3%82%92%e3%83%93%e3%83%ab%e3%83%89%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/plusload.net\/?p=1298","title":{"rendered":"Docker Container\u306eUE5.4.4\u3067Project\u3092\u30d3\u30eb\u30c9\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>\u6e96\u5099\u3057\u305f\u300cghcr.io\/epicgames\/unreal-engine:dev-slim-5.4.4\u300d\u3092\u4f7f\u3063\u3066TESTProject\u3092\u30d3\u30eb\u30c9\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>\u307e\u305a\u3001Windows11\u306eUE5.4.4\u3067\u30a8\u30c7\u30a3\u30bf\u3092\u8d77\u52d5\u3057\u30d5\u30a1\u30fc\u30b9\u30c8\u30d1\u30fc\u30bd\u30f3\u3092\u4f5c\u6210\u3059\u308b<br \/>\n<a href=\"https:\/\/plusload.net\/wp-content\/uploads\/2024\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-12-24-150620.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/plusload.net\/wp-content\/uploads\/2024\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-12-24-150620-300x194.png\" alt=\"\" width=\"300\" height=\"194\" \/><\/a><\/p>\n<p>D:\\ContainerTEST\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u3063\u3066\u3053\u306e\u4e2d\u306bTESTProject\u3068\u3044\u3046\u540d\u524d\u3067\u4f5c\u6210\u3059\u308b<br \/>\n<a href=\"https:\/\/plusload.net\/wp-content\/uploads\/2024\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-12-24-151126-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/plusload.net\/wp-content\/uploads\/2024\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-12-24-151126-2-300x162.png\" alt=\"\" width=\"300\" height=\"162\" \/><\/a><\/p>\n<p>\u4f5c\u6210\u3057\u305f\u3089\u304a\u7d42\u3044\u3067UE\u30a8\u30c7\u30a3\u30bf\u3092\u7d42\u4e86\u3059\u308b\u3002<br \/>\n\u3067WSL\u306eUbuntu22.04\u3067\u30de\u30a6\u30f3\u30c8\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b<\/p>\n<pre>root@:~# df\r\nFilesystem      1K-blocks      Used  Available Use% Mounted on\r\nnone              4055048         0    4055048   0% \/usr\/lib\/modules\/5.15.167.4-microsoft-standard-WSL2\r\nnone              4055048         4    4055044   1% \/mnt\/wsl\r\ndrivers         499117052 300503700  198613352  61% \/usr\/lib\/wsl\/drivers\r\n\/dev\/sdc       1055762868  42687872  959371524   5% \/\r\nnone              4055048        84    4054964   1% \/mnt\/wslg\r\nnone              4055048         0    4055048   0% \/usr\/lib\/wsl\/lib\r\nrootfs            4051640      2208    4049432   1% \/init\r\nnone              4055048       784    4054264   1% \/run\r\nnone              4055048         0    4055048   0% \/run\/lock\r\nnone              4055048         0    4055048   0% \/run\/shm\r\ntmpfs                4096         0       4096   0% \/sys\/fs\/cgroup\r\nnone              4055048        64    4054984   1% \/mnt\/wslg\/versions.txt\r\nnone              4055048        64    4054984   1% \/mnt\/wslg\/doc\r\nC:\\             499117052 300503700  198613352  61% \/mnt\/c\r\nD:\\            1953513468  50883368 1902630100   3% \/mnt\/d\r\nJ:\\             976762524 430057796  546704728  45% \/mnt\/j\r\nsnapfuse            93952     93952          0 100% \/snap\/gtk-common-themes\/1535\r\nsnapfuse              128       128          0 100% \/snap\/bare\/5\r\nsnapfuse            75776     75776          0 100% \/snap\/core22\/864\r\nsnapfuse            41856     41856          0 100% \/snap\/snapd\/20290\r\nsnapfuse            75648     75648          0 100% \/snap\/core22\/1722\r\nsnapfuse            45440     45440          0 100% \/snap\/snapd\/23258\r\nsnapfuse           134272    134272          0 100% \/snap\/ubuntu-desktop-installer\/1276\r\nsnapfuse           134912    134912          0 100% \/snap\/ubuntu-desktop-installer\/1286<\/pre>\n<p>D:\\\u306f\/mnt\/d\u3067\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u308b<\/p>\n<p>\/mnt\/d\u306e\u4e2d\u3092\u78ba\u8a8d\u3059\u308b\u3068ContainerTEST\u304c\u3042\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u308b<\/p>\n<pre>root@:# ls -l \/mnt\/d\r\nls: 'System Volume Information': Permission denied\r\ntotal 40254716\r\ndrwxrwxrwx 1 root root        4096 Dec 12  2023 '$RECYCLE.BIN'\r\ndrwxrwxrwx 1 root root        4096 Nov 25 14:34  BlueprintScreenshotTool_5.4\r\ndrwxrwxrwx 1 root root        4096 Dec 24 14:01  ContainerTEST\r\ndrwxrwxrwx 1 root root        4096 Mar 29  2024  SD16GB\r\nd--x--x--x 1 root root        4096 Nov 25 13:22 'System Volume Information'\r\ndrwxrwxrwx 1 root root        4096 Jan 11  2024  msdownld.tmp\r\n-rwxrwxrwx 1 root root 41041142784 Dec 24 10:38  ue544.tar<\/pre>\n<p>\u78ba\u8a8d\u3067\u304d\u305f\u306e\u3067<a href=\"https:\/\/dev.epicgames.com\/documentation\/ja-jp\/unreal-engine\/quick-start-guide-for-using-container-images-in-unreal-engine?application_version=5.4\" target=\"_blank\" rel=\"noopener\">\u516c\u5f0f\u624b\u9806<\/a>\u3067\u52d5\u304b\u3057\u3066\u307f\u308b<\/p>\n<p>\u307e\u305a\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3059\u308b<\/p>\n<pre>docker run --rm -ti -v \"\/mnt\/d\/ContainerTEST\/TESTProject:\/project\" ghcr.io\/epicgames\/unreal-engine:dev-slim-5.4.4<\/pre>\n<p>\/mnt\/d\/ContainerTEST\/TESTProject\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u69cb\u6210\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067TESTProject.uproject\u307e\u3067\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3059\u308b<br \/>\n<a href=\"https:\/\/plusload.net\/wp-content\/uploads\/2024\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-12-24-153030.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/plusload.net\/wp-content\/uploads\/2024\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-12-24-153030-300x133.png\" alt=\"\" width=\"300\" height=\"133\" \/><\/a><\/p>\n<p>\u8d77\u52d5\u3057\u305f\u3089\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b<\/p>\n<pre>ue4@7652a7aa609a:~\/UnrealEngine$ \/home\/ue4\/UnrealEngine\/Engine\/Build\/BatchFiles\/RunUAT.sh \\\r\n        BuildCookRun \\\r\n        -utf8output \\\r\n        -platform=Linux \\\r\n        -clientconfig=Shipping \\\r\n        -serverconfig=Shipping \\\r\n        -project=\/project\/<span style=\"color: red;\">TESTProject<\/span>.uproject \\\r\n        -noP4 -nodebuginfo -allmaps \\\r\n        -cook -build -stage -prereqs -pak -archive \\\r\n        -archivedirectory=\/project\/Packaged\r\n\r\nRunning AutomationTool...\r\n\r\nSetting up bundled DotNet SDK\r\nStart UAT Interactively: dotnet AutomationTool.dll BuildCookRun -utf8output -platform=Linux -clientconfig=Shipping -serverconfig=Shipping -project=\/project\/TESTProject.uproject -noP4 -nodebuginfo -allmaps -cook -build -stage -prereqs -pak -archive -archivedirectory=\/project\/Packaged\r\n\/home\/ue4\/UnrealEngine\/Engine\/Build\/BatchFiles\/Linux\/..\/..\/..\/Binaries\/ThirdParty\/DotNet\/6.0.302\/linux\/dotnet\r\nStarting AutomationTool...\r\n.\r\n.\r\n.\r\nRunning: \/usr\/bin\/env -- \"chmod\" \"+x\" \"\/project\/Intermediate\/Staging\/TESTProject.sh\"\r\nchmod: changing permissions of '\/project\/Intermediate\/Staging\/TESTProject.sh': Operation not permitted\r\nTook 0.01s to run env, ExitCode=1\r\n<span style=\"color: red;\"><b>Failed to chmod \"\/project\/Intermediate\/Staging\/TESTProject.sh\"\r\n(see \/home\/ue4\/Library\/Logs\/Unreal Engine\/LocalBuildLogs\/Log.txt for full exception trace)<\/b><\/span>\r\nAutomationTool executed for 0h 7m 55s\r\nAutomationTool exiting with ExitCode=1 (Error_Unknown)\r\nRunUAT ERROR: AutomationTool was unable to run successfully. Exited with code: 1<\/pre>\n<p>\u30d3\u30eb\u30c9\u9014\u4e2d\u3067Failed to chmod &#8220;\/project\/Intermediate\/Staging\/TESTProject.sh&#8221;\u3068\u6012\u3089\u308c\u305f\uff01<\/p>\n<pre>\/usr\/bin\/env -- \"chmod\" \"+x\" \"\/project\/Intermediate\/Staging\/TESTProject.sh\"\r\nchmod: changing permissions of '\/project\/Intermediate\/Staging\/TESTProject.sh': Operation not permitted<\/pre>\n<p>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u5909\u66f4\u306b\u5931\u6557\u3059\u308b\u3068\u306e\u3053\u3068\u3002<\/p>\n<p>\u8a66\u3057\u306b\u3053\u308c\u3092\u5358\u4f53\u3067\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068<\/p>\n<pre># \u30a8\u30e9\u30fc\u306b\u306a\u308b\r\nue4@7652a7aa609a:~\/UnrealEngine$ \/usr\/bin\/env -- \"chmod\" \"+x\" \"\/project\/Intermediate\/Staging\/TESTProject.sh\"\r\nchmod: changing permissions of '\/project\/Intermediate\/Staging\/TESTProject.sh': Operation not permitted\r\n\r\n# \u30a8\u30e9\u30fc\u306b\u306a\u3089\u306a\u3044\r\nue4@7652a7aa609a:~\/UnrealEngine$ sudo \/usr\/bin\/env -- \"chmod\" \"+x\" \"\/project\/Intermediate\/Staging\/TESTProject.sh\"<\/pre>\n<p>sudo\u3067\u5b9f\u884c\u3059\u308c\u3070\u30a8\u30e9\u30fc\u306b\u306a\u3089\u306a\u3044\u307f\u305f\u3044\u3002\u3069\u3046\u3059\u308a\u3083\u3044\u3044\uff1fue4\u3092sudo\u306b\u3057\u3061\u3083\u3048\u3070OK\uff1f<\/p>\n<pre>ue4@08c4655e3ab8:~\/UnrealEngine$ sudo gpasswd -a ue4 sudo\r\nAdding user ue4 to group sudo<\/pre>\n<p>\u3060\u3081\u3060\u3063\u305f(-_-;)<\/p>\n<pre># all users\r\ncat \/etc\/passwd | cut -d : -f 1\r\n# all groups\r\ncat \/etc\/group | cut -d : -f 1\r\n# WSL\r\nsudo umount \/mnt\/d\r\nsudo mount -t drvfs D:\\ \/mnt\/d -o metadata\r\n<\/pre>\n<p><a href=\"https:\/\/ja.stackoverflow.com\/questions\/60298\/chmod-operation-not-permitted-%E3%81%A8%E3%81%84%E3%81%86%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6\">\u3053\u3061\u3089<\/a>\u306b\u8a18\u8f09\u304c\u3042\u3063\u305f<\/p>\n<pre>\r\n# unmount \/mnt\/d\/\r\nroot@XPS8700RTX2060:~# sudo umount \/mnt\/d\r\n# mount \/mnt\/d\/ add metadeta option\r\nroot@XPS8700RTX2060:~# sudo mount -t drvfs D: \/mnt\/d -o metadata\r\n# start ue container\r\nroot@XPS8700RTX2060:~# docker run --rm -ti -v \"\/mnt\/d\/ContainerTEST\/TESTProject:\/project\" ghcr.io\/epicgames\/unreal-engine:dev-slim-5.4.4\r\nTo run a command as administrator (user \"root\"), use \"sudo <command>\".\r\nSee \"man sudo_root\" for details.\r\n# chenge chown root to ue4\r\nue4@3d853155df34:~\/UnrealEngine$ sudo chown ue4:ue4 \/project\/Intermediate\/Staging\/TESTProject.sh\r\nue4@3d853155df34:~\/UnrealEngine$ ls -l \/project\/Intermediate\/Staging\/TESTProject.sh\r\n-rwxrwxrwx 1 ue4 ue4 310 Dec 26 23:59 \/project\/Intermediate\/Staging\/TESTProject.sh\r\n# start build ue5.4.4\r\nue4@3d853155df34:~\/UnrealEngine$ \/home\/ue4\/UnrealEngine\/Engine\/Build\/BatchFiles\/RunUAT.sh \\\r\n        BuildCookRun \\\r\n        -utf8output \\\r\n        -platform=Linux \\\r\n        -clientconfig=Shipping \\\r\n        -serverconfig=Shipping \\\r\n        -project=\/project\/TESTProject.uproject \\\r\n        -noP4 -nodebuginfo -allmaps \\\r\n        -cook -build -stage -prereqs -pak -archive \\\r\n        -archivedirectory=\/project\/Packaged\r\n\r\nRunning AutomationTool...\r\n.\r\n.\r\n.\r\nCopying NonUFSFiles to staging directory: \/project\/Saved\/StagedBuilds\/Linux\r\nStage command time: 21.05 s\r\n********** STAGE COMMAND COMPLETED **********\r\n********** ARCHIVE COMMAND STARTED **********\r\nArchiving to \/project\/Packaged\r\nArchive command time: 6.15 s\r\n********** ARCHIVE COMMAND COMPLETED **********\r\nBuildCookRun time: 90.37 s\r\nBUILD SUCCESSFUL\r\nAutomationTool executed for 0h 1m 31s\r\nAutomationTool exiting with ExitCode=0 (Success)\r\n<\/pre>\n<p><a href=\"https:\/\/plusload.net\/wp-content\/uploads\/2024\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-12-27-091506.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/plusload.net\/wp-content\/uploads\/2024\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-12-27-091506-300x137.png\" alt=\"\" width=\"300\" height=\"137\" \/><\/a><br \/>\n\u3088\u3046\u3084\u304f\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u3067\u304d\u305f\uff01<\/p>\n<p>WSL\u306e\u5834\u5408\u306f\u30c7\u30a3\u30b9\u30af\u3092\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3057\u3066\u304b\u3089metadeta\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u518d\u30de\u30a6\u30f3\u30c8\u3057\u3066\/project\/Intermediate\/Staging\/<projectname>.sh\u306e\u30e6\u30fc\u30b6\u30fc\u3092ue4\u306b\u5909\u66f4\u3057\u3066\u304b\u3089\u30d3\u30eb\u30c9\u3059\u308b\u306e\u3060\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6e96\u5099\u3057\u305f\u300cghcr.io\/epicgames\/unreal-engine:dev-slim-5.4.4\u300d\u3092\u4f7f\u3063\u3066TESTProject\u3092\u30d3\u30eb\u30c9\u3057\u3066\u307f\u308b\u3002 \u307e\u305a\u3001Windows11\u306eUE5.4.4\u3067\u30a8\u30c7\u30a3\u30bf\u3092\u8d77\u52d5\u3057\u30d5\u30a1\u30fc\u30b9&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,8],"tags":[],"class_list":["post-1298","post","type-post","status-publish","format-standard","hentry","category-ubuntu","category-ue4-ue5"],"_links":{"self":[{"href":"https:\/\/plusload.net\/index.php?rest_route=\/wp\/v2\/posts\/1298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/plusload.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plusload.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plusload.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plusload.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1298"}],"version-history":[{"count":9,"href":"https:\/\/plusload.net\/index.php?rest_route=\/wp\/v2\/posts\/1298\/revisions"}],"predecessor-version":[{"id":1313,"href":"https:\/\/plusload.net\/index.php?rest_route=\/wp\/v2\/posts\/1298\/revisions\/1313"}],"wp:attachment":[{"href":"https:\/\/plusload.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plusload.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plusload.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}