get container in master and slave