% docker exec -it myalpine
"docker exec" requires at least 2 arguments.
See 'docker exec --help'.
Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
Run a command in a running container
Fix:
To execute a docker container, you require at least 2 arguments,
- First Argument: The name of the container (or the container ID)
- Second Argument: The Command, example bin/sh, bin/bash, bin/zsh
In the exec command I ran, I am missing the second argument,
% docker exec -it myalpine /bin/sh
/ #

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!