Don't create a pty to run vtysh inside of the docker container (#1792)
This commit is contained in:
parent
1942183185
commit
fae346f586
@ -1,10 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
DOCKER_EXEC_FLAGS="i"
|
||||
|
||||
# Determine whether stdout is on a terminal
|
||||
if [ -t 1 ] ; then
|
||||
DOCKER_EXEC_FLAGS+="t"
|
||||
fi
|
||||
|
||||
docker exec -$DOCKER_EXEC_FLAGS bgp vtysh "$@"
|
||||
docker exec -i bgp vtysh "$@"
|
||||
|
@ -1,10 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
DOCKER_EXEC_FLAGS="i"
|
||||
|
||||
# Determine whether stdout is on a terminal
|
||||
if [ -t 1 ] ; then
|
||||
DOCKER_EXEC_FLAGS+="t"
|
||||
fi
|
||||
|
||||
docker exec -$DOCKER_EXEC_FLAGS bgp vtysh "$@"
|
||||
docker exec -i bgp vtysh "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user