-
Get Docker for Mac. Install this. It will install Docker on your system, as well as the background Docker daemon. Have that running while you do the rest of this. If you want to use a command-line tool instead, look into Docker Machine.
-
Either clone this repo, or just get the Dockerfile and put it into a new directory. Let's call it 'TinyDockerGuide'. Put your code files in a subfolder there called 'code' (there will be some there already if you've cloned this repo.)
-
To build the Dockerfile: from your directory, do
docker build -t c-kata-14.04-check .
. -t sets a tag for this build to be used later. -
To run the Docker container: from the directory do
docker run -it --name kata -v /Users/yourusername/workspace/TinyDockerGuide/kata_code:/code c-kata-14.04-check /bin/bash
. "kata_code" is the name of the directory containing the code you want to run, and 'code' is the name of the working directory docker starts in. -i and -t start you off in an interactive terminal. Obviously, change the path to whatever is correct for where you put your docker practice directory. The 'name' flag allows to name your docker container. If you do this, you'll have to run 'docker rm ' to remove it before you can run it again. If you leave this out, the container will get a random name each time you run it. To get a list of your existing containers, dodocker ps -a
-
You should be at an Ubuntu command prompt, inside the directory with your code, from which you can just run 'make' or whatever you like. To run this particular sample code, do 'make' and then 'make run_tests'
-
Type 'exit' when you're done in Ubuntu
tinydockerguide's Introduction
tinydockerguide'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.