Tag: tools

  • Control windows docker with Windows 10 Ubuntu Linux subsystem

    Windows 10 Linux subsystems are a very powerful feature and expand the capabilities for Windows based developers greatly, without the need to use VMs or dual booting. One of these is controlling your windows based docker host via your Linux subsystem.

    Why?

    Linux command line is much more powerful that windows standard cmd line, you can combine a number of tools using piping to perform complex operations all via cli. Many of the tutorials, guides and normal operating commands used by docker and other tools are written using Linux based command line.

    1. Setup Linux Subsystem

    First you need to have your linux subsystem all setup and running. here is a guide I previous wrote to do just that.

    All commands below will be via your linux subsystem.

    Windows 10 Subsystem for Linux Ubuntu

    2. Updates and packages

    3. Add Docker’s official GPG key

    4. Add repository

    5. Install docker client

    6. Add docker host to bash profile

    This is so that you dont have to keep telling docker client how to access the docker service.

    7. Enable exposed daemon with docker

    We are almost done, now we just need to go back to our windows system and enabled exposed daemon via the docker settings.

    Right click the docker icon within your task area and choose settings.

    The general tab should have a “Expose daemon on tcp://localhost:2375 without TLS”, enable this option.

    You should now be able to control your Windows docker service via your Linux subsystem.

    Note

    There is a more secure way to establish a connect between your subsystem and docker client, have a look at the following guide.

    [Cross Post] WSL Interoperability with Docker

  • Windows 10 Subsystem for Linux Ubuntu

    I have always been more of a Windows based developer and used Linux based systems for server technologies, I have tried in the past to move to Linux but I am to fixed in my way and prefer the tools I have on windows! Is that a bad thing, I dont no? however with Windows 10 comes Subsystems which allows you to run a Linux based Ubuntu as part of a subsystem working jointly with your windows 10 operating system.

    Im not talking about a VM or dual booting, I am talking about the ability to go to windows command line and type “ubuntu” and a full fledged ubuntu system from the command line starts up and allows you to run various tools, applications and services all within Ubuntu within Windows 10!

    Microsoft site has a simple guide to follow to install the linux subsystem here.

     

    1. Enabled windows subsystems for Linux

     

    2. Install Ubuntu via Windows Store

    Open Microsoft Store and search for Ubuntu and click install
     

    3. Initialise Setup

    Open command line and type ubuntu to start the ubuntu instance, it will take you throught a initialisation stage

     

    What next? have play around with Ubuntu on windows. For development purposes I am going to be using it with Docker! allowing me to control my Windows Docker environment from the Ubuntu Linux, as it allows me to use all the Linux based command structures and pipes making the experience even smoother and more powerful.

  • Local website & services remotely accessible via secure tunnels with ngrok

    Need an easy way to allow external network users to access services or websites on your local machine? ngrok allows you to easily create a secure tunnel from ngroks servers to your machine. For a web developer, this is a dream come true, this is a great way to demo a development whilst in the early stages, saves time uploading to a server.

    • Allows access to your locally hosted web server from a unique domain
    • Can use your own domains
    • Works with vHost files
    • Allows testing of website which require an external accessible point such as payment gateways or oAuth
    • Can tunnel other services such as PhoneGap allowing users external to your network to test your mobile app
    • Various API and IoT implementations
    • Easy / quick private networking, VPN benefits

    These are only a short list of what is possible using ngrok. Look at their website for a full list of its powerful features and get started.

    https://ngrok.com/