packages feed

mdoc-0.3.1.1: examples/docker.1

.\" vim: ft=nroff.mustache
.Dd $Mdocdate: September 20 2026 $
.Dt DOCKER 1
.Os
.Sh NAME
.Nm docker
.Nd a self\-sufficient runtime for containers
.Sh SYNOPSIS
.Nm
.Bk -words
.Op Fl \&Dv
.Op Fl c Ar string
.Op Fl H Ar string
.Op Fl l Ar string
.Op Fl Fl config= Ns Ar string
.Op Fl Fl tls
.Op Fl Fl tlscacert= Ns Ar string
.Op Fl Fl tlscert= Ns Ar string
.Op Fl Fl tlskey= Ns Ar string
.Op Fl Fl tlsverify
.Ar command
.Ek
.Pp
.Nm
.Cm run
.Pp
.Nm
.Cm exec
.Pp
.Nm
.Cm ps
.Sh DESCRIPTION
The options are as follows:
.Bl -tag -width indent
.It Fl c Ar string , Fl Fl context= Ns Ar string
Name of the context to use to connect to the daemon (overrides DOCKER_HOST env
var and default context set with "docker context use")
.It Fl D , Fl Fl debug
Enable debug mode
.It Fl H Ar string , Fl Fl host= Ns Ar string
Daemon socket to connect to
.It Fl l Ar string , Fl Fl log\-level= Ns Ar string
Set the logging level ("debug", "info", "warn", "error", "fatal")
.It Fl v , Fl Fl version
Print version information and quit
.It Fl Fl config= Ns Ar string
Location of client config files
.It Fl Fl tls
Use TLS; implied by \-\-tlsverify
.It Fl Fl tlscacert= Ns Ar string
Trust certs signed only by this CA
.It Fl Fl tlscert= Ns Ar string
Path to TLS certificate file
.It Fl Fl tlskey= Ns Ar string
Path to TLS key file
.It Fl Fl tlsverify
Use TLS and verify the remote
.El
.Ss COMMANDS
.Bl -tag -width indent
.It Cm run
Create and run a new container from an image
.It Cm exec
Execute a command in a running container
.It Cm ps
List containers
.El
.Sh EXIT STATUS
.Ex -std