# Copyright 2016 Steve Hazel # # This file is part of Benome. # # Benome is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License version 3 # as published by the Free Software Foundation. # # Benome is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with Benome. If not, see http://www.gnu.org/licenses/. from container_manager import ContainerManager c = ContainerManager('http://127.0.0.1:5200', '127.0.0.1', user_manager=False) f = ''' ''' for container_id in f.split(): print container_id c.docker(['rm', '-f', container_id])