mirror of
https://github.com/SantaSpeen/santaspeen.ru-blog.git
synced 2026-08-30 05:41:00 +00:00
main docs
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# commands
|
||||
|
||||
Тут частые команды
|
||||
|
||||
Docker run exec or have entry point use: --entry-point=/bin/bash
|
||||
```
|
||||
docker run --rm -it image-name sh
|
||||
```
|
||||
|
||||
Build args
|
||||
|
||||
|
||||
```
|
||||
docker build . -t myimage --build-arg ARTIFACTORY_USER=$ARTIFACTORY_USER --build-arg ARTIFACTORY_PASSWORD=$ARTIFACTORY_PASSWORD
|
||||
```
|
||||
|
||||
|
||||
Docker run rm exec
|
||||
|
||||
```
|
||||
docker run --rm -it tg_webhook_exporter bash
|
||||
```
|
||||
|
||||
Docker overlay who use (need install jq)
|
||||
|
||||
```
|
||||
docker inspect $(docker ps -qa) | jq -r 'map([.Name, .GraphDriver.Data.MergedDir]) | .[] | "\(.[0])\t\(.[1])"'
|
||||
```
|
||||
|
||||
Docker image size
|
||||
|
||||
```
|
||||
docker ps --format '{{.Names}}\n{{.Image}}:{{.Size}}\n' -s
|
||||
```
|
||||
|
||||
Docker cp
|
||||
```
|
||||
docker cp <containerId>:/file/path/within/container /host/path/target
|
||||
```
|
||||
Reference in New Issue
Block a user