Error response from daemon: rpc error: code = 13 desc = invalid header field value "oci runtime erro

245 views
Skip to first unread message

Garnepalli Srikanth

unread,
May 30, 2018, 1:25:36 AM5/30/18
to TRex Traffic Generator
Hi All,

i am trying to run the pcap from outside the container using docker exec command hitting into following issue , can any one help
docker exec Trex ./t-rex-64 -f cap2/test_dnspcap.yaml -d 10
rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"exec: \\\"./t-rex-64\\\": stat ./t-rex-64: no such file or directory\"\n"


root@srikanth-ThinkPad-L470:/home/srikanth/IT-FrameWork/Setup/UT_Fmwk# docker exec -itd Trex ./t-rex-64 -f cap2/test_dnspcap.yaml -d 10
Error response from daemon: rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"exec: \\\"./t-rex-64\\\": stat ./t-rex-64: no such file or directory\"\n"

thanks
Srikanth Garnepalli

hanoh haim

unread,
May 30, 2018, 4:58:09 AM5/30/18
to Garnepalli Srikanth, TRex Traffic Generator
Hi, 

I've tested it with out docker see here


and it works for me 

from one terminate I've run it
$sudo docker run --rm -it --privileged --cap-add=ALL trexcisco/trex

from another I've exec ./t-rex

sudo docker exec -it 20af8d61affd bash -c "cd /var/trex/v2.41;./t-rex-64 -i"


thanks
Hanoh

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/c2f32728-f126-4536-b486-4cfae218c7be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Hanoh
Sent from my iPhone

Garnepalli Srikanth

unread,
Jun 4, 2018, 7:38:04 AM6/4/18
to TRex Traffic Generator
Thanks Hanoh,

it worked , below command  , but it is not coming out from zmq publisher ,  i have to manully say control-c does this will come out automatically after pcap reply ?


docker exec -it Trex bash -c "cd /var/trex/v2.36/;./t-rex-64 -f cap2/test_dnspcap.yaml -m 1-d 1

Starting  TRex v2.36 please wait  ...
EAL: Started without hugepages support, physical addresses not available
 set driver name net_af_packet
 driver capability  :
 Number of ports found: 2
zmq publisher at: tcp://*:4500
 wait 1 sec .
port : 0
------------
link         :  link : Link Up - speed 10000 Mbps - full-duplex
promiscuous  : 0
port : 1
------------
link         :  link : Link Up - speed 10000 Mbps - full-duplex
promiscuous  : 0
 number of ports         : 2
 max cores for 2 ports   : 1
 max queue per port      : 3
no client generator pool configured, using default pool
no server generator pool configured, using default pool
 -------------------------------
RX core uses TX queue number 0 on all ports
 core, c-port, c-queue, s-port, s-queue, lat-queue
 ------------------------------------------
 1        0      0       1       0      0 
 -------------------------------
no client generator pool configured, using default pool
no server generator pool configured, using default pool
 -- loading cap file cap2/dns.pcap



-Srikanth

On Wednesday, May 30, 2018 at 2:28:09 PM UTC+5:30, Hanoch Haim wrote:
Hi, 

I've tested it with out docker see here


and it works for me 

from one terminate I've run it
$sudo docker run --rm -it --privileged --cap-add=ALL trexcisco/trex

from another I've exec ./t-rex

sudo docker exec -it 20af8d61affd bash -c "cd /var/trex/v2.41;./t-rex-64 -i"


thanks
Hanoh
On Wed, May 30, 2018 at 8:25 AM, Garnepalli Srikanth <sri...@gmail.com> wrote:
Hi All,

i am trying to run the pcap from outside the container using docker exec command hitting into following issue , can any one help
docker exec Trex ./t-rex-64 -f cap2/test_dnspcap.yaml -d 10
rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"exec: \\\"./t-rex-64\\\": stat ./t-rex-64: no such file or directory\"\n"


root@srikanth-ThinkPad-L470:/home/srikanth/IT-FrameWork/Setup/UT_Fmwk# docker exec -itd Trex ./t-rex-64 -f cap2/test_dnspcap.yaml -d 10
Error response from daemon: rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"exec: \\\"./t-rex-64\\\": stat ./t-rex-64: no such file or directory\"\n"

thanks
Srikanth Garnepalli

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.

To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/c2f32728-f126-4536-b486-4cfae218c7be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages