泊坞窗本地文件下载

我想dockerize我的SDK为泊坞窗本地下载" title="文件下载">文件下载

docker run --rm -it -v /home/ubuntu/work/yoctosdk/:/workdir crops/extsdk-container --url file:///home/ubuntu/work/yocto/poky/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.4.1.sh 

,不幸的是我得到

Attempting to download file:///home/ubuntu/work/yocto/poky/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.4.1.sh 

curl: (37) Couldn't open file /home/ubuntu/work/yocto/poky/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.4.1.sh

Unable to download "file:///home/ubuntu/work/yocto/poky/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.4.1.sh".

我试图解决这个下载并运行泊坞窗内的本地文件。什么是正确的下载本地文件?我正在关注this。

回答:

默认情况下不能从主机访问文件。您需要安装要访问Docker容器的文件夹。

要使文件/home/ubuntu/work/yocto/poky/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.4.1.sh访问,使用安装它的父目录:

-v /home/ubuntu/work/yocto/poky/build/tmp/deploy/sdk:/home/ubuntu/work/yocto/sdk-installer 

,然后提供的URL路径内泊坞窗容器:

--url file:///home/ubuntu/work/yocto/sdk-installer/poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.4.1.sh 

完整的命令:

docker run --rm -it -v /home/ubuntu/work/yoctosdk/:/workdir crops/extsdk-container -v /home/ubuntu/work/yocto/poky/build/tmp/deploy/sdk:/home/ubuntu/work/yocto/sdk-installer --url file:///home/ubuntu/work/yocto/sdk-installer/poky-glibc-x86_64-core-image-minimal-i586-toolchain-2.4.1.sh 

以上是 泊坞窗本地文件下载 的全部内容, 来源链接: utcz.com/qa/264726.html

回到顶部