Issue
Docker EXEC is facing issue while passing “” (consecutive double quotes) as string value to command
command:
PS C:> docker exec containername CMD /C echo 'rabbitmqctl set_parameter shovel my-shovel “{”“src-protocol”": ““amqp091"”, ““src-uri””:”“amqp://”", ““src-queue””: ““my-queue””, ““dest-protocol””: ““amqp091"”, ““dest-uri””: ““amqp://remote-server””, ““dest-queue””: ““another-queue””}” ’
Error / output
rabbitmqctl set_parameter shovel my-shovel “{src-protocol: amqp091, src-uri:amqp://, src-queue: my-queue, dest-protocol: amqp091, dest-uri: amqp://remote-server, dest-queue: another-queue}”
Expected value
rabbitmqctl set_parameter shovel my-shovel “{”“src-protocol”": ““amqp091"”, ““src-uri””:”“amqp://”", ““src-queue””: ““my-queue””, ““dest-protocol””: ““amqp091"”, ““dest-uri””: ““amqp://remote-server””, ““dest-queue””: ““another-queue””}”