@ -311,6 +311,7 @@ class DockerVM(BaseNode):
" Tty " : True ,
" Tty " : True ,
" OpenStdin " : True ,
" OpenStdin " : True ,
" StdinOnce " : False ,
" StdinOnce " : False ,
" User " : " root " ,
" HostConfig " : {
" HostConfig " : {
" CapAdd " : [ " ALL " ] ,
" CapAdd " : [ " ALL " ] ,
" Privileged " : True ,
" Privileged " : True ,
@ -342,6 +343,9 @@ class DockerVM(BaseNode):
# Give the information to the container the list of volume path mounted
# Give the information to the container the list of volume path mounted
params [ " Env " ] . append ( " GNS3_VOLUMES= {} " . format ( " : " . join ( self . _volumes ) ) )
params [ " Env " ] . append ( " GNS3_VOLUMES= {} " . format ( " : " . join ( self . _volumes ) ) )
# Pass user configured for image to init script
params [ " Env " ] . append ( " GNS3_USER= {} " . format ( image_infos . get ( " Config " , { " User " : " " } ) [ " User " ] ) )
variables = self . project . variables
variables = self . project . variables
if not variables :
if not variables :
variables = [ ]
variables = [ ]