Skip to content

Commit

Permalink
Don't create a pty to run vtysh inside of the docker container (sonic…
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-shirshov authored Jun 14, 2018
1 parent 1942183 commit fae346f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions dockers/docker-fpm-frr/base_image_files/vtysh
Original file line number Diff line number Diff line change
@@ -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 "$@"
9 changes: 1 addition & 8 deletions dockers/docker-fpm-quagga/base_image_files/vtysh
Original file line number Diff line number Diff line change
@@ -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 "$@"

0 comments on commit fae346f

Please sign in to comment.