- /opt/jumpscale7/lib/JumpScale/lib/docker/Docker.py
- Properties
Methods
def btrfsSubvolCopy
arguments
def btrfsSubvolDelete
arguments
def btrfsSubvolExists
arguments
def btrfsSubvolList
arguments
def btrfsSubvolNew
arguments
def commit
arguments
def copy
arguments
def create
arguments
- name = ''
- ports = ''
- vols = ''
- volsro = ''
- stdout = True
- base = 'despiegk/mc'
- nameserver = ['8.8.8.8']
- replace = True
- cpu
- mem = 0
- jumpscale = False
- ssh = True
- myinit = True
@param ports in format as follows "22:8022 80:8080" the first arg e.g. 22 is the port in
the container
@param vols in format as follows "/var/insidemachine:/var/inhost # /var/1:/var/1 # ..."
'#' is separator
def destroy
arguments
def destroyall
arguments
def downloadFile
arguments
get a file located at source in the host to dest on the host
def execute
arguments
execute file in docker
def exportRsync
arguments
- name
- backupname
- key = 'pub'
def exportTgz
arguments
def getImages
arguments
def getInfo
arguments
def getIp
arguments
def getProcessList
arguments
@return [["$name",$pid,$mem,$parent],....,[$mem,$cpu]]
last one is sum of mem & cpu
def getPubPortForInternalPort
arguments
def getSSH
arguments
def importRsync
arguments
- backupname
- name
- basename = ''
- key = 'pub'
@param basename is the name of a start of a machine locally, will be used as basis and
then the source will be synced over it
def importTgz
arguments
def inspect
arguments
def installJumpscale
arguments
def list
arguments
return list of names
def ps
arguments
return detailed info
def pull
arguments
def pushSSHKey
arguments
def removeImages
arguments
def removeRedundantFiles
arguments
def restart
arguments
def run
arguments
def setHostName
arguments
def stop
arguments
def uploadFile
arguments
put a file located at source on the host to dest into the container