Goodsmileduck / redis-cli

redis-cli on alpine
12 stars 6 forks source link

can't run with arguments #1

Closed thomas-oo closed 5 years ago

thomas-oo commented 7 years ago

Command: docker run --name=redis-cli -it --rm goodsmileduck/redis-cli -h localhost -p 5050 ping

Response: Error response from daemon: Cannot start container 66d5ba6734f7da6b807c0f2004aa8b543cbf91dcd521b405d8465b5a56543d05: [8] System error: exec: "-h": executable file not found in $PATH

Leonardo18 commented 6 years ago

Same problem here

Goodsmileduck commented 6 years ago

@Leonardo18 you have to add commad in front parameters ex:

docker run --name=redis-cli -it --rm goodsmileduck/redis-cli redis-cli -h localhost -p 5050 ping
Leonardo18 commented 6 years ago

Yeah @Goodsmileduck, yesterday i did this and works fine. Thanks, great job.

DaveStein commented 5 years ago

The docs also show --it instead of -it