Skip to content

Commit c88aaac

Browse files
committed
more info about docker extension
1 parent 2735d29 commit c88aaac

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

docs/languages/dockerfile.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,17 @@ Visual Studio Code's experience for authoring `docker-compose.yml` is also very
6565
VS Code will first show a list of popular images along with metadata such as the number of stars and description. If you continue typing VS Code will query the Docker Hub index for matching images, including searching public profiles. For example, searching for `Microsoft` will show you all the public Microsoft images.
6666

6767
![Docker Compose Microsoft image suggestions](images/docker/dockercomposesearch.png)
68+
69+
## Docker commands
70+
Many of the most common Docker and docker-compose commands are built right into the Command Palette (F1).
71+
72+
![intelliSense](images/docker/dockercommands.gif)
73+
74+
## Dockerfile linting
75+
You can enable linting of Dockerfile files through the `docker.enableLinting` setting (CMD+, on MacOS, or Ctrl+, on Windows and Linux). The extension uses the awesome [dockerfile_lint](https://github.com/projectatomic/dockerfile_lint) rules based linter to analyze the Dockerfile. You can provide your own customized rules file by setting the `docker.linterRuleFile` setting. You can find [more information](https://github.com/projectatomic/dockerfile_lint#extending-and-customizing-rule-files) on how to create rules files as well as [sample rules files](https://github.com/projectatomic/dockerfile_lint/tree/master/sample_rules) in the [dockerfile_lint](https://github.com/projectatomic/dockerfile_lint) project.
76+
77+
![linting](images/docker/dockerfilelinting.gif)
78+
79+
## Running commands on Linux
80+
By default, Docker runs as the root user on Linux, requiring other users to access it with `sudo`. This extension does not assume root access, so you will need to create a Unix group called docker and add users to it. Instructions can be found here: [Create a Docker group](https://docs.docker.com/engine/installation/linux/ubuntulinux/#/create-a-docker-group)
81+
Loading
Loading

0 commit comments

Comments
 (0)