Giter Club home page Giter Club logo

docker-vscode-on-windows's Introduction

Docker on Windows - Visual Code over Xming

Run Visual Studio Code, from a Docker container based on Debian 8 hosted on Windows and powered by Xming (a Windows X11 server).

keywords

Docker, Dockerfile, Docker Hub, linux, Xming, X11 server

Description

Traditionally we see container running applications on the server side, leaving it's presentation layer to typically a browse or, to interacte with the container via a command prompt. However, it's also possible to run a container and use a X11 server to access a GUI. In this example, I'll explain how to run a container on a Windows environment to use Visual Studio Code.

Prerequisites

Docker Image

A Docker Image available on Docker Hub:

Windows X11 server
  • Xming

Configuration

  1. Configure Xming X Server x0.hosts file with your ip address (e.g.:)
localhost
192.168.1.7	

Note: default location is c:\Program Files (x86)\Xming\x0.hosts

Instructions for use on Windows

  1. Make sure Xming is install and configured

  2. Open a PowerShell command prompt.

  3. Set the DISPLAY environment variable (make sure to replace <localhost> with you own settings)

    PS> set-variable -name DISPLAY -value <localhost>:0.0
  1. Run a Docker image in interactive mode (replace <docker_image> with the designated image or with your own):
    PS> docker run -it --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix <docker_image>

docker-vscode-on-windows's People

Contributors

samueldossantos avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

mikenew01 sj5j

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.