Skip to content

Instantly share code, notes, and snippets.

@RyosukeKamei
Last active December 13, 2017 05:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyosukeKamei/fd489469cc74427d8a41184cf698e510 to your computer and use it in GitHub Desktop.
Save RyosukeKamei/fd489469cc74427d8a41184cf698e510 to your computer and use it in GitHub Desktop.
Docker Tips コンテナ上でコマンドを実行する(dockerとdocker-composeを使った場合)~アジャイルでDevOpsなシステム構築実践~ ref: https://qiita.com/RyosukeKamei/items/ca4cf8016733e4d6049e
$ docker-compose exec {サービス名} {コマンド}
$ docker exec -it {コンテナ名} {コマンド}
### Workspace Utilities Container ###########################
workspace: # ←これがサービス名
build:
context: ./workspace
args:
- INSTALL_XDEBUG=${WORKSPACE_INSTALL_XDEBUG}
... 略 ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment