[fix] docker exec requires at least 2 arguments


% 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
/ # 
Fix- docker exec requires at least 2 arguments.
-


Have Questions? Post them here!

Top Hashtags:

Advertisements

Advertisements




Advertisements