File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ SERVER_NAME=" ${1:- local.openstack.org} "
4+
5+ echo " SERVER NAME $SERVER_NAME " ;
6+
7+ MYSQL_SERVICE_PROVIDER=init USE_SWAP=0 SERVER_NAME=$SERVER_NAME vagrant up --provider=docker;
Original file line number Diff line number Diff line change 1+ # Docker Configuration
2+
3+ ``` bash
4+ wget https://releases.hashicorp.com/vagrant/2.0.0/vagrant_2.0.0_x86_64.deb
5+ dpkg -i vagrant_2.0.0_x86_64.deb
6+ apt-get install docker.io
7+ adduser [user] docker
8+ ```
9+
10+ # Docker up
11+
12+ set execution permissions
13+
14+ ``` bash
15+ chmod 775 dockerup.sh
16+ ```
17+
18+ ``` bash
19+ ./dockerup.sh [SERVER_NAME]
20+ ```
21+ this scripts optionally takes as parameter SERVER_NAME
22+ is none is given, then default value is "local.openstack.org"
23+
24+ ## cheat sheet
25+
26+ List Container Processes
27+
28+ ``` bash
29+ docker ps
30+ ```
31+
32+ Access to Container Shell
33+
34+ ``` bash
35+ docker exec -i -t SERVER_NAME /bin/bash
36+ ```
37+
38+ Stop Container
39+
40+ ``` bash
41+ docker stop [SERVER_NAME]
42+ ```
43+
44+ Remove Container
45+
46+ ``` bash
47+ docker rm [SERVER_NAME]
48+ ```
You can’t perform that action at this time.
0 commit comments