Removed some faulty information
All checks were successful
continuous-integration/drone the build was successful
All checks were successful
continuous-integration/drone the build was successful
This commit is contained in:
parent
2cb6d2686c
commit
87c5b2eca9
3 changed files with 10 additions and 9 deletions
|
|
@ -16,7 +16,7 @@ Docker API.
|
|||
|
||||
Usage: $0 [-h] [-d DAYS] HOST IP [CERTDIR]
|
||||
|
||||
HOST hostname of the machine to expose
|
||||
HOST domain name where your machine is accessible
|
||||
IP public IP of the machine to expose
|
||||
CERTDIR directory where the certificates will reside on the machine. If
|
||||
specified, a startup_options.conf file is created for you, which
|
||||
|
|
@ -118,11 +118,11 @@ if [ -n "$certdir" ]; then
|
|||
cat > startup_options.conf << EOF
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/bin/dockerd --tlsverify --tlscacert='$certdir/ca.pem' --tlscert='$certdir/server-cert.pem' --tlskey='$certdir/server-key.pem' -H fd:// -H tcp://0.0.0.0:2376
|
||||
ExecStart=/usr/sbin/dockerd --tlsverify --tlscacert='$certdir/ca.pem' --tlscert='$certdir/server-cert.pem' --tlskey='$certdir/server-key.pem' -H fd:// -H tcp://0.0.0.0:2376
|
||||
EOF
|
||||
|
||||
echo "Copy 'ca.pem', 'server-cert.pem' and 'server-key.pem' over to '$certdir' on the machine."
|
||||
echo "'startup_options.conf' should be placed in '/etc/systemd/docker.service.d/startup_options.conf'."
|
||||
echo "'startup_options.conf' should be placed in '/etc/systemd/system/docker.service.d/startup_options.conf'."
|
||||
|
||||
else
|
||||
echo "Copy 'ca.pem', 'server-cert.pem' and 'server-key.pem' over to the chosen directory on the machine."
|
||||
|
|
|
|||
Reference in a new issue