Code Monkey home page Code Monkey logo

safe_iot's Introduction

  • Install Docker Toolbox for Windows https://www.docker.com/products/docker-toolbox
  • Start Docker Quickstart Terminal
  • Create your desired directory and create a Dockerfile (see mine above for reference).
  • Run docker build -t <docker username>/<choose a name for image> ., in my case I'm running docker build -t hunterlester/safe_iot . <--- don't forget this period
  • Next we need to get a container running from the image that we just built, with a volume mounted to our host directory so that it's easy to be able to create and write files in either the container or on our host and have them be shared.
  • An important detail here is that in this case boot2docker is the Docker host, not our Windows OS.
  • Run docker run -d -it --name <name your container> -v <path to directory on host>:/<path to directory in container> <docker username>/<image name>
  • In my case, I'm running docker run -d -it --name safe_iot -v $(pwd):/safe_iot hunterlester/safe_iot
  • The container will be running now, detached.
  • Use docker attach <container name> to access the command line within the container. It's in here that I'm running nasm..., ld ..., grub-mkrescure ..., etc...
  • To exit command line without stopping container, key in CTRL + P + Q
  • Use docker start <container name>, docker stop , to start and stop your container, respectively.
  • If you forget your container name, use docker ps to view running containers and docker ps -a to view all containers, including those that are not running.
  • I'm writing my files either in the boot2docker terminal or directly in Windows in my editor. Either way the files are mounted on the boot2docker VM and then shared with my container.

safe_iot's People

Contributors

hunterlester avatar

Stargazers

 avatar Nicholas avatar

Watchers

James Cloos avatar  avatar  avatar

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.