TheNouillet / symfony-vscode

Symfony extension for Visual Studio Code
MIT License
20 stars 22 forks source link

Correct work with docker-compose #61

Open texnicii opened 3 years ago

texnicii commented 3 years ago

Now I don't understand how I can use docker-compose exec <container_name> instead docker exec <container_id> in symfony-vscode.shellCommand setting.

dithom commented 2 years ago

Same here. I get unknown docker command: "compose path/to/compose.yml" when using the following in settings.json:

{
  "symfony-vscode": {
    "shellExecutable": "/bin/bash",
    "shellCommand": "docker-compose -f /path/to/compose.yml exec container_name bash"
  }
}

seems like the command is split at docker- somehow. FYI there already is an open issue at vscode for resolving variables in settings.json: https://github.com/microsoft/vscode/issues/2809