Zum Inhalt springen

Docker/Befehl: Unterschied zwischen den Versionen

Aus Foxwiki
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
'''Docker/Befehl''' Docker image and container command line interface  
'''Docker/Befehl''' Docker image and container command line interface


== Beschreibung ==
== Beschreibung ==
'''docker''' is a client for interacting with the daemon (see   '''dockerd(8)''') through the CLI.
'''docker''' is a client for interacting with the daemon (see '''dockerd(8)''') through the CLI


The Docker CLI has over 30 commands. The commands are listed below   and each has its own man page which explains usage and arguments.
The Docker CLI has over 30 commands. The commands are listed below and each has its own man page which explains usage and arguments


To see the man page for a command run '''man docker''' .
To see the man page for a command run '''man docker'''  


== Installation ==
== Installation ==
Zeile 23: Zeile 23:
| || --help || || Print usage statement
| || --help || || Print usage statement
|-
|-
| || --config= || || Specifies the location of the Docker client configuration files. The default is '~/.docker'
| || --config= || || Specifies the location of the Docker client configuration files. The default is '~/.docker'
|-
|-
| -D || --debug= || true|false || Enable debug mode. Default is false
| -D || --debug= || true|false || Enable debug mode. Default is false
Zeile 48: Zeile 48:


=== Kommandos ===
=== Kommandos ===
Use "docker help" or "docker --help" to get an   overview of available commands.
Use "docker help" or "docker --help" to get an overview of available commands


=== Umgebungsvariablen ===
=== Umgebungsvariablen ===
Zeile 58: Zeile 58:
| 0 || Erfolg
| 0 || Erfolg
|-
|-
| >0 || Fehler
| >0 || Fehler
|}
|}


== Anwendung ==
== Anwendung ==
For specific client examples please see the man page for the   specific Docker command. For example:
For specific client examples please see the man page for the specific Docker command. For example:
<syntaxhighlight lang="bash" highlight="1" line copy>
<syntaxhighlight lang="bash" highlight="1" line copy>
man docker-run
man docker-run
Zeile 75: Zeile 75:
! Datei !! Beschreibung
! Datei !! Beschreibung
|-
|-
| ||  
| ||
|-
|-
| ||  
| ||
|}
|}


Zeile 91: Zeile 91:


=== Dokumentation ===
=== Dokumentation ===
; Man-Page  
; Man-Page
# [https://manpages.debian.org/stable/docker.io/docker.1.en.html docker(1)]
# [https://manpages.debian.org/stable/docker.io/docker.1.en.html docker(1)]


<!--
<!--
; Info-Pages  
; Info-Pages
-->
-->


Zeile 110: Zeile 110:


= OPTIONS =
= OPTIONS =
'''--help'''
'''--help'''


Print usage statement
Print usage statement


'''--config'''=""
'''--config'''=""


Specifies the location of the Docker client configuration files. The default   is '~/.docker'.
Specifies the location of the Docker client configuration files. The default is '~/.docker'


'''-D''', '''--debug'''=''true''|''false''
'''-D''', '''--debug'''=''true''|''false''


Enable debug mode. Default is false.
Enable debug mode. Default is false


'''-H''', '''--host'''=[''unix:///var/run/docker.sock'']:   tcp://[host]:[port][path] to bind or unix://[/path/to/socket] to use
'''-H''', '''--host'''=[''unix:///var/run/docker.sock'']: tcp://[host]:[port][path] to bind or unix://[/path/to/socket] to use


The socket(s) to bind to in daemon mode specified using one or more
The socket(s) to bind to in daemon mode specified using one or more


tcp://host:port/path, unix:///path/to/socket, fd://* or fd://socketfd
tcp://host:port/path, unix:///path/to/socket, fd://* or fd://socketfd


If the tcp port is not specified, then it will default to either '''2375'''   when
If the tcp port is not specified, then it will default to either '''2375''' when


'''--tls''' is off, or '''2376''' when '''--tls''' is on, or   '''--tlsverify''' is specified.
'''--tls''' is off, or '''2376''' when '''--tls''' is on, or '''--tlsverify''' is specified


'''-l''',   '''--log-level'''="''debug''|''info''|''warn''|''error''|''fatal''"
'''-l''', '''--log-level'''="''debug''|''info''|''warn''|''error''|''fatal''"


Set the logging level. Default is '''info'''.
Set the logging level. Default is '''info'''


'''--tls'''=''true''|''false''
'''--tls'''=''true''|''false''


Use TLS; implied by --tlsverify. Default is false.
Use TLS; implied by --tlsverify. Default is false


'''--tlscacert'''=''~/.docker/ca.pem''
'''--tlscacert'''=''~/.docker/ca.pem''


Trust certs signed only by this CA.
Trust certs signed only by this CA


'''--tlscert'''=''~/.docker/cert.pem''
'''--tlscert'''=''~/.docker/cert.pem''


Path to TLS certificate file.
Path to TLS certificate file


'''--tlskey'''=''~/.docker/key.pem''
'''--tlskey'''=''~/.docker/key.pem''


Path to TLS key file.
Path to TLS key file


'''--tlsverify'''=''true''|''false''
'''--tlsverify'''=''true''|''false''


Use TLS and verify the remote (daemon: verify client, client: verify daemon)
Use TLS and verify the remote (daemon: verify client, client: verify daemon)


Default is false.
Default is false


'''-v''', '''--version'''=''true''|''false''
'''-v''', '''--version'''=''true''|''false''


Print version information and quit. Default is false.
Print version information and quit. Default is false

Version vom 2. November 2025, 23:32 Uhr

Docker/Befehl Docker image and container command line interface

Beschreibung

docker is a client for interacting with the daemon (see dockerd(8)) through the CLI

The Docker CLI has over 30 commands. The commands are listed below and each has its own man page which explains usage and arguments

To see the man page for a command run man docker

Installation

Aufruf

docker [OPTIONS] COMMAND [ARG...]
docker [--help|-v|--version]

Optionen

Unix GNU Parameter Beschreibung
--help Print usage statement
--config= Specifies the location of the Docker client configuration files. The default is '~/.docker'
-D --debug= false Enable debug mode. Default is false
-H --host= [unix:///var/run/docker.sock]: tcp://[host]:[port][path] to bind or unix://[/path/to/socket] to use The socket(s) to bind to in daemon mode specified using one or more tcp://host:port/path, unix:///path/to/socket, fd://* or fd://socketfd If the tcp port is not specified, then it will default to either 2375 when --tls is off, or 2376 when --tls is on, or --tlsverify is specified
-l --log-level= info|warn|error|fatal Set the logging level. Default is info
--tls= false Use TLS; implied by --tlsverify. Default is false
--tlscacert= ~/.docker/ca.pem Trust certs signed only by this CA
--tlscert= ~/.docker/cert.pem Path to TLS certificate file
--tlskey= ~/.docker/key.pem Path to TLS key file
--tlsverify= false Use TLS and verify the remote (daemon: verify client, client: verify daemon)

Default is false

-v --version= false Print version information and quit. Default is false

Parameter

Kommandos

Use "docker help" or "docker --help" to get an overview of available commands

Umgebungsvariablen

Exit-Status

Wert Beschreibung
0 Erfolg
>0 Fehler

Anwendung

For specific client examples please see the man page for the specific Docker command. For example:

man docker-run

Problembehebung

Konfiguration

Dateien

Datei Beschreibung


Anhang

Siehe auch



Dokumentation

Man-Page
  1. docker(1)


Projekt



TMP

OPTIONS

--help

Print usage statement

--config=""

Specifies the location of the Docker client configuration files. The default is '~/.docker'

-D, --debug=true|false

Enable debug mode. Default is false

-H, --host=[unix:///var/run/docker.sock]: tcp://[host]:[port][path] to bind or unix://[/path/to/socket] to use

The socket(s) to bind to in daemon mode specified using one or more

tcp://host:port/path, unix:///path/to/socket, fd://* or fd://socketfd

If the tcp port is not specified, then it will default to either 2375 when

--tls is off, or 2376 when --tls is on, or --tlsverify is specified

-l, --log-level="debug|info|warn|error|fatal"

Set the logging level. Default is info

--tls=true|false

Use TLS; implied by --tlsverify. Default is false

--tlscacert=~/.docker/ca.pem

Trust certs signed only by this CA

--tlscert=~/.docker/cert.pem

Path to TLS certificate file

--tlskey=~/.docker/key.pem

Path to TLS key file

--tlsverify=true|false

Use TLS and verify the remote (daemon: verify client, client: verify daemon)

Default is false

-v, --version=true|false

Print version information and quit. Default is false