@task
def docker_init(ctx):
 import platform
 print 'You will be asked for your sudo password to continue...'
 if (platform.system() == 'Darwin'):
  ctx.run('sudo ifconfig lo0 alias 192.168.168.167')
 else:
  print 'Your system is not recognized, you will have to setup docker manually'

@ task def docker_init ( ctx ) : import platform print 'You will be asked for your sudo password to continue...' if ( platform . system ( ) == 'Darwin' ) : ctx . run ( 'sudo ifconfig lo0 alias 192.168.168.167' ) else : print 'Your system is not recognized, you will have to setup docker manually'
initial docker setup .