Hi !
I need to check and fix some IP connection problems in an Azure IoT Edge Module. The module can’t see a specific IP:Port, so I decided to open the container bash and curl from there.
By default, curl is not installed in this docker image, so before using curl I need to also install it.
1st step is to connect to my container bash. The command is super simple:
#connect to the bash of running container
docker exec -it <container-id> bash
Then I can run a curl command, however, it’s not installed.

I know, I can add curl as a prerequisite on the docker image definition. However, I will only use it once, so once I’m the container terminal I’ll install curl with the following command
apt-get update; apt-get install curl
And now, curl installed, so I can start to solve my IP problems.

Happy coding!
Greetings
El Bruno
More posts in my blog ElBruno.com.
More info in https://beacons.ai/elbruno
¿Con ganas de ponerte al día?
En Lemoncode te ofrecemos formación online impartida por profesionales que se baten el cobre en consultoría:
- Si tienes ganas de ponerte al día con Front End (ES6, Typescript, React, Angular, Vuejs…) te recomendamos nuestros Máster Front End: https://lemoncode.net/master-frontend#inicio-banner
- Si te quieres poner al día en Backend (stacks .net y nodejs), te aconsejamos nuestro Bootcamp Backend: https://lemoncode.net/bootcamp-backend#bootcamp-backend/banner
- Y si tienes ganas de meterte con Docker, Kubernetes, CI/CD…, tenemos nuestro Bootcamp Devops: https://lemoncode.net/bootcamp-devops#bootcamp-devops/inicio