OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-docker / indigo / eva-opencog / stop.sh

18 lines · bash ref:
#! /bin/bash
#
# Stop any running containers previously started with 'run.sh'
#
TAINER=`docker ps |grep eva-opencog |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 eva-opencog`
if test x"$TAINER" != x; then
	echo -n 'Removing... '
	docker rm eva-opencog
fi

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