mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-14 01:48:55 +08:00
* Add bash prompt * remove curly braces * Change shell from ash to bash * Add inputrc for bash
23 lines
234 B
Plaintext
Executable File
23 lines
234 B
Plaintext
Executable File
|
|
#!/bin/sh
|
|
case "$DOCKER_HOST" in
|
|
*:3376)
|
|
echo swarm
|
|
;;
|
|
*:2376)
|
|
echo $DOCKER_MACHINE_NAME
|
|
;;
|
|
*:2375)
|
|
echo $DOCKER_MACHINE_NAME
|
|
;;
|
|
*:55555)
|
|
echo $DOCKER_MACHINE_NAME
|
|
;;
|
|
"")
|
|
echo local
|
|
;;
|
|
*)
|
|
echo unknown
|
|
;;
|
|
esac
|