User Tools

Site Tools


docker_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker_cheat_sheet [2021/11/03 21:41] – [Getting Started] stephendocker_cheat_sheet [2021/11/04 23:01] (current) – external edit 127.0.0.1
Line 26: Line 26:
 | ''<nowiki>dig mysql</nowiki>'' | (From inside nicolaka/netshoot) network lookup for the ''mysql'' network. | | ''<nowiki>dig mysql</nowiki>'' | (From inside nicolaka/netshoot) network lookup for the ''mysql'' network. |
 | ''<nowiki>docker-compose up -d</nowiki>'' | Use Docker Compose to run the application stack defined in the ''docker-compose.yml'' file.\\ ''-d'' - run the container in detached mode (in the background) | | ''<nowiki>docker-compose up -d</nowiki>'' | Use Docker Compose to run the application stack defined in the ''docker-compose.yml'' file.\\ ''-d'' - run the container in detached mode (in the background) |
 +| ''<nowiki>docker-compose logs -f</nowiki>'' | See the logs from each of the services interleaved into a single stream. |
 +| ''<nowiki>docker-compose logs -f <service name></nowiki>'' | See the logs for a specific service. |
 +| ''<nowiki>docker-compose down</nowiki>'' | Tear down the application. |
 +| ''<nowiki>docker-compose down --volumes</nowiki>'' | Tear down the application //and// the named volumes. |
 +| ''<nowiki>docker scan <image name></nowiki>'' | Scan an image for vulnerabilities. |
 +| ''<nowiki>docker image history <image name></nowiki>'' | Image history and layers. |
  
 /* /*
docker_cheat_sheet.1635975689.txt.gz · Last modified: 2021/11/04 22:41 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki