How to open Ubuntu GUI inside a Docker image

后端 未结 3 746
旧时难觅i
旧时难觅i 2020-12-29 03:48

I have downloaded the Ubuntu image inside Docker on Windows.

I can run Ubuntu by:

docker run -it ubuntu

I only see root

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 04:17

    Generally, the approach for developing with Docker is to keep the IDE on the workstation, and build images with the binary produced from the sources.

    You can find many example of such a workflow (local compilation, deployment in Docker containers) in domeide.github.io/ (Docker meets the IDE!)
    For example: Docker Tools for VisualStudio allows for a tight integration between your editor and Docker processes.

    (But this is for Visual Studio 2015, not Visual Studio Code.)

提交回复
热议问题