Don't create a pty to run vtysh inside of the docker container (#1792)

This commit is contained in:
pavel-shirshov 2018-06-14 12:11:29 -07:00 committed by GitHub
parent 1942183185
commit fae346f586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 16 deletions

View File

@ -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 "$@"

View File

@ -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 "$@"