-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jana Radhakrishnan <mrjana@socketplane.io>
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Powerstrip mode | ||
|
||
Using powerstrip mode of socketplane is simple and easy. If you are not using vagrant run "socketplane install" from the base directory of the socketplane workspace or just run scripts/install.sh to setup everything. If you are using vagrant no other extra steps are required. | ||
|
||
Once socketplane is installed run new containers using the well known docker commands as below example shows: | ||
|
||
sudo DOCKER_HOST=localhost:2375 docker run -itd ubuntu | ||
|
||
If you want the containers to connect to different network just add a special environment variable as follows: | ||
|
||
sudo DOCKER_HOST=localhost:2375 docker run -e SP_NETWORK=test -itd ubuntu | ||
|
||
The above commands assumes that you have already created a network named "test" using the already existing socketplane commands. |