shelldocker pull learnwitheexamples / systemC
shelldocker Run -it learnwiththeexamples /systemc
在 docker 映像中放置了一个“hello world”示例来验证环境设置。构建和运行:
shellcd helloworld make ./out
虽然你可以直接在 Docker 容器中开发和调试,但我个人建议通过 Visual Studio Code 进行远程开发,就像 VS Code 远程容器中介绍的那样。
docker 容器不能访问您的本地文件,除非您使用“-v”选项挂载它。例如,要将本地路径挂载到容器中的某个位置,可以使用以下命令:
shelldocker run -it -v local_path:mount_point learnwiththeexamples /systemc
其中 Local_path:您希望 docker 容器访问的本地机器的路径,mount_point:是本地路径内容在 Docker 容器中显示的位置。 在 Windows 操作系统中,将本地 C 驱动器挂载到 docker 容器的/home 目录下:
shelldocker run -it——name systemc -v C:/:/home learnwiththeexamples /systemc
本文作者:古月流新
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!