Skip to content

fix: ENTRYPOINT においてインタラクティブシェルを立ち上げていたので、docker run の最終引数のコマンドや、 docker-compose exec の際のyamlの command: が実行されていなかった#632

Merged
laysakura merged 1 commit intomainfrom
fix/entrypoint-cmd
Jun 3, 2021
Merged

fix: ENTRYPOINT においてインタラクティブシェルを立ち上げていたので、docker run の最終引数のコマンドや、 docker-compose exec の際のyamlの command: が実行されていなかった#632
laysakura merged 1 commit intomainfrom
fix/entrypoint-cmd

Conversation

@laysakura
Copy link
Copy Markdown
Contributor

Issueへのリンク

(なし)

やったこと

docker run -it anonify.azurecr.io/rust-sgx-sdk-rootless:latest bash -c 'echo hi'

など実行しても、 ( -it パラメータありなら)インタラクティブシェルログインされるだけで、echoの実行がされない問題があった。

デフォルトでbashなインタラクティブシェルログインされる挙動は残しつつ、コマンドを自由に上書きできるように修正。

やらないこと

(なし)

動作検証

上述のコマンドなど

参考

https://docs.docker.jp/engine/reference/builder.html#exec-entrypoint このへんでも紹介されてるテクです。

image

@laysakura laysakura requested a review from cipepser June 3, 2021 10:16
@cipepser
Copy link
Copy Markdown
Collaborator

cipepser commented Jun 3, 2021

勉強になる

@laysakura laysakura merged commit 6107d33 into main Jun 3, 2021
@laysakura laysakura deleted the fix/entrypoint-cmd branch June 3, 2021 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants