Skip to content
Permalink
Newer
Older
100755 9 lines (7 sloc) 160 Bytes
Jun 9, 2019
1
#! /bin/bash
2
3
if [ -z "$1" ]
4
then
5
docker ps --format "{{.Names}} {{.Image}} {{.Status}}"
6
exit 0
7
fi
8
9
docker exec -it "$1" /bin/bash 2> /dev/null
You can’t perform that action at this time.