0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

docker container exec -it apache/bin/bashしたらrequires at least 2 argumentsと言われた。

Posted at

dockerイメージをbuildするべくDockerfileを起動させようと、dockerの中に入ろうとして

$docker container exec -it apache/bin/bash

したら

"docker container exec" requires at least 2 arguments.
See 'docker container exec --help'.

Usage:  docker container exec [OPTIONS] CONTAINER COMMAND [ARG...]

Execute a command in a running container

「引数を最低2つ以上設定せよ」

とのこと。
よく見ると
apache/bin/bash
となっていたので
apache /bin/bash
に書き換えて

$docker container exec -it apache /bin/bash

したら

root@8ebdbaaac367:/# 

成功。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?