Created
May 8, 2015 00:21
-
-
Save smothiki/06a86cd9164470c380f1 to your computer and use it in GitHub Desktop.
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
from docker import Client | |
import traceback | |
import sys | |
docker_cli = Client(base_url='tcp://172.17.8.103:2395',timeout=1200, version='1.17') | |
try : | |
docker_cli.create_container('mysql:latest',name='sleeper',environment=["MYSQL_ROOT_PASSWORD=my-secret-pw"],mem_limit='4G') | |
except Exception as err: | |
print dir(err) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment