Is docker exec - it containername / bin / bash in a fixed format? What are the errors

Alibaba cloud Q & A 2022-02-13 06:32:43 阅读数:483

docker exec containername bin bash

docker exec -it containerName /bin/bash Is the format fixed , Why do you report an error




Take the answer 1:

Hello! , https://docs.docker.com/engine/reference/commandline/exec/ In detail . Pay attention to its basic format :

docker exec [OPTIONS] CONTAINER COMMAND [ARG...]

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130632412365.html