Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
sflinks = [ [ 'linux-base', 'docker-container-base' ] ]
[ foundation.docker-container-base ]
description = 'Base Docker Container'
scripts = { 'create' = 'docker-container-create', 'destroy' = 'docker-container-destroy' }
foundation_types = [ 'Docker' ]
config_values = {}
template = {}
physical_interface_names = []
[ script.docker-container-create ]
description = 'Create Docker Container'
script = """# Create Docker Container
container_spec = foundation.docker_containerspec
begin( description='Docker Container Creation' )
port_map = foundation.map_ports( container_spec=container_spec )
container = docker.create( container_spec=container_spec, port_map=port_map )
foundation.docker_id = container[ 'docker_id' ]
end
"""
[ script.docker-container-destroy ]
description = 'Destroy Docker Container'
script = """# Destory Docker Container
begin( description='Docker Container Destruction' )
foundation.stop()
foundation.destroy()
foundation.docker_id = None
foundation.unmap_ports()
end
"""