Last active
January 21, 2016 10:23
-
-
Save phaus/bae788d593f86152a61b to your computer and use it in GitHub Desktop.
run a Docker Container on SmartOS
This file contains hidden or 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
{ | |
"alias": "2fact", | |
"brand": "lx", | |
"kernel_version": "3.13.0", | |
"docker": true, | |
"cpu_shares": 1000, | |
"zfs_io_priority": 1000, | |
"max_physical_memory": 1024, | |
"quota": 10, | |
"nowait": true, | |
"image_uuid": "f46452ca-e49f-a7eb-8fc0-190a914b8e01", | |
"tmpfs": 16384, | |
"maintain_resolvers": true, | |
"resolvers": [ | |
"8.8.8.8", | |
"8.8.4.4" | |
], | |
"internal_metadata": { | |
"docker:cmd": "[\"bash\", \"/opt/docker/bin/2fact-demo\"]" | |
}, | |
"nics": [ | |
{ | |
"interface": "net0", | |
"nic_tag": "admin", | |
"ip": "192.168.168.230", | |
"netmask": "255.255.255.0", | |
"gateway": "192.168.168.1", | |
"primary": true | |
} | |
] | |
} |
This file contains hidden or 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
#!/bin/bash | |
imgadm sources --add-docker-hub | |
imgadm list --docker | |
# or also | |
imgadm list type=docker | |
imgadm import phaus/2fact-demo:1.0-SNAPSHOT | |
vmadm create -f 2fact.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment