I want to excute some commands inside a container but the second one doesn't want to be executed inside the container so grep can't find the file in home directory of my container. Does someone has the same problem?
# Throughput
docker exec -i container_client bash << EOF >> mystatistics.xls
(sockperf throughput --tcp --msg-size=256 -i $ipaddcontainer -p 12345 -t 10)> my_output_file_troughput.txt
echo "Bridge mode" "," `grep 'BandWidth is ' my_output_file_troughput.txt | cut -d ' ' -f 5`
exit
EOF