#!/bin/bash DOCKERPS=`sudo docker ps | grep "cartesi/noether" | cut -f 1 -d " "` echo "Attaching to $DOCKERPS" echo "Hit CTRL-p then CTRL-q to exit" sudo docker attach $DOCKERPS