- 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 runningdocker 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 runningnasm...
,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 anddocker 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 theboot2docker
VM and then shared with my container.
safe_iot's Introduction
safe_iot's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.