OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-docker / noetic / ros-blender / stop.sh

18 lines · bash ref:
#! /bin/bash
#
# Stop any running containers previously started with 'run.sh'
#
TAINER=`docker ps |grep ros-blender |cut -f1 -d" "`
if test x"$TAINER" != x; then
	echo -n 'Stopping leftover container.. '
	docker stop -t 1 $TAINER
fi
TAINER=`docker ps -a |grep ros-blender`
if test x"$TAINER" != x; then
	echo -n 'Removing.. '
	docker rm ros-blender
fi

# Disable local X11 connections, just in case.
xhost -local:root