I have a docker image in which I want to run the following command :
echo "1" > /tmp/service.cfg
/bin/bash
How can I group and escape this command to run it within a docker container :
docker run -i -t debian/latest echo "1" > /tmp/service.cfg && /bin/bash
The command above doesn't works as it doesn't echo in the desired file first and then give me the hand in a shell...