Systematic Architecture [EN]
The blog on systems development/architecture, to be a beautiful, artistic one.
Monday, 3 October 2016
Debian (Linux OS) on Docker
Debian (Linux OS) on Docker ====================================== based on macOS Install Docker -------------- ```bash brew cask install docker ``` ### Installed Docker path ```bash /Applications/Docker.app/Contents/Resources/bin/docker ``` Create Debian image -------------------- ```bash $ docker run --name debian -i -v /Users/yourusername/Docker/Debian -t debian:wheezy /bin/bash ``` Start your image created on Docker ------------------------------------------ ```bash $ docker start debian ``` Stop your image created on Docker ------------------------------------------ ```bash $ docker stop debian ``` SSH access into a container --------------------------- ```bash docker exec -it debian /bin/bash ```
Jenkins on Docker
Jenkins on Docker ====================================== based on macOS Install Docker -------------- ```bash brew cask install docker ``` ### Installed Docker path ```bash /Applications/Docker.app/Contents/Resources/bin/docker ``` Create Jenkins image -------------------- ```bash $ docker run --name myjenkins -p 8080:8080 -p 50000:50000 -v /var/jenkins_home jenkins ``` or to specify the absolute path ```bash $ docker run --name myjenkins -p 8080:8080 -p 50000:50000 -v /Users/yourusername/Docker/Jenkins:/var/jenkins_home jenkins ``` Open Jenkins site ------------------ Go to with a browser ```bash http://localhost:8080/ ``` To know the admin password ``` $ less /path/to/yourJenkinsImage/Jenkins/secrets/initialAdminPassword ``` You should create an account on your Jenkins site. Start your Jenkins image created on Docker ------------------------------------------ ```bash $ docker start myjenkins ``` Stop your Jenkins image created on Docker ------------------------------------------ ```bash $ docker stop myjenkins ``` SSH access into a container --------------------------- ```bash docker exec -it myjenkins /bin/bash ``` ```bash jenkins@abcdefg123456:/$ echo $JENKINS_HOME /var/jenkins_home ```
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)