GithubHelp home page GithubHelp logo

container-stuff's Introduction

Launch Rancher container

$ docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable

v2

$ sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher

Start 2 Virtualbox VMs with RancherOS

$ docker-machine create -d virtualbox --virtualbox-boot2docker-url https://github.com/rancher/os/releases/download/v1.3.0/rancheros.iso rancheros1 $ docker-machine create -d virtualbox --virtualbox-boot2docker-url https://github.com/rancher/os/releases/download/v1.3.0/rancheros.iso rancheros2

Instapect the VM's IP addresses

$ docker-machine ls

In another terminal access the first VM

$ docker-machine ssh rancheros1

Join the host to Rancher

[docker@rancheros1 ~]$ docker run -e CATTLE_AGENT_IP="192.168.99.100" --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.9 http://ajnouri.info:8080/v1/scripts/79407216D85A492ACF68:1514678400000:Ng2Iowt7NiWZMnTAQNnbSp3iiU

In another terminal access the second VM

$ docker-machine ssh rancheros2

Join the host to Rancher

[docker@rancheros2 ~]$ docker run -e CATTLE_AGENT_IP="192.168.99.101" --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.9 http://ajnouri.info:8080/v1/scripts/79407216D85A492ACF68:1514678400000:Ng2Iowt7NiWZMnTAQNnbSp3iiU

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.