我正在尝试将文件从我的 Windows (主机)安装到我的 Linux (容器)。当我装载具有标准扩展名的单个文件时,一切似乎都可以正常工作。但是,当我尝试挂载作为点文件的单个文件时,它不起作用。
//This does not work
type=bind,source=${env:USERPROFILE}\\.sample,target=/home/.sample,consistency=cached
// This does work
type=bind,source=${env:USERPROFILE}\\sample.txt,target=/home/sample.txt,consistency=cached
我不确定如何指定该文件为点文件。我确实注意到,如果该文件不存在,则会在Windows(主机)计算机上创建一个名为 .sample 的文件夹,但不会在Linux(容器)上创建该文件夹。
答案 0 :(得分:1)
您确定他们不在吗? Linux将点文件视为隐藏文件,因此仅执行@Override
protected void onDestroy() {
Log.i("SSSS","acitvity destroyed");
super.onDestroy();
ConstraintLayout layout = this.findViewById(R.id.rootView);
layout.removeView(web); <----- This linse
web.destroy(); <------ Forcing webview to destroy and next explicitly set null
web = null;
}
命令就看不到它们。
您可以使用ls
来向您显示隐藏的点文件。