Difference between revisions of "Set up Docker Container"

From New IAC Wiki
Jump to navigation Jump to search
(Created page with "On local machine <pre> mkdir src cd src mkdir CLAS cd CLAS mkdir evio2Root_container cd evio2Root_container </pre> Install Docker https://docs.docker.com/docker-for-mac/in...")
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
On local machine
+
https://docs.docker.com/engine/docker-overview/
 +
 
 +
https://docs.docker.com/get-started/part2/#define-a-container-with-a-dockerfile
 +
 
 +
 
 +
=Mac Setup=
 +
(Prepare programs, directories, and files/repositories)
 +
 
 +
Install git
 +
 
 +
https://sourceforge.net/projects/git-osx-installer/files/git-2.15.0-intel-universal-mavericks.dmg/download
 +
 
 +
 
 +
Install Docker
 +
 
 +
https://docs.docker.com/docker-for-mac/install/#download-docker-for-mac
  
  
 
<pre>
 
<pre>
 +
cd ../Documents
 +
mkdir repos
 +
</pre>
 +
 +
git clone https://github.com/tianon/docker-brew-ubuntu-core.git
 +
 +
<pre>
 +
cd
 
mkdir src
 
mkdir src
 
cd src
 
cd src
Line 11: Line 34:
 
</pre>
 
</pre>
  
Install Docker
 
  
https://docs.docker.com/docker-for-mac/install/#download-docker-for-mac
+
 
 +
 
  
 
create file named Dockerfile with contents  
 
create file named Dockerfile with contents  
 
https://github.com/tianon/docker-brew-ubuntu-core/blob/5fce3945d95630c2fc03c21ef8665d92bd824642/trusty/Dockerfile
 
  
  
Line 24: Line 45:
 
docker build -t evio2root .
 
docker build -t evio2root .
 
</pre>
 
</pre>
 +
 +
 +
 +
Version control
 +
 +
https://www.atlassian.com/git/tutorials/what-is-version-control

Latest revision as of 22:43, 24 November 2017

https://docs.docker.com/engine/docker-overview/

https://docs.docker.com/get-started/part2/#define-a-container-with-a-dockerfile


Mac Setup

(Prepare programs, directories, and files/repositories)

Install git

https://sourceforge.net/projects/git-osx-installer/files/git-2.15.0-intel-universal-mavericks.dmg/download


Install Docker

https://docs.docker.com/docker-for-mac/install/#download-docker-for-mac


cd ../Documents
mkdir repos

git clone https://github.com/tianon/docker-brew-ubuntu-core.git

cd
mkdir src
cd src
mkdir CLAS
cd CLAS
mkdir evio2Root_container
cd evio2Root_container



create file named Dockerfile with contents


Run docker

docker build -t evio2root .


Version control

https://www.atlassian.com/git/tutorials/what-is-version-control