Skip to content

Instantly share code, notes, and snippets.

@phaus
Last active January 21, 2016 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phaus/bae788d593f86152a61b to your computer and use it in GitHub Desktop.
Save phaus/bae788d593f86152a61b to your computer and use it in GitHub Desktop.
run a Docker Container on SmartOS
{
"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
}
]
}
#!/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