From 47dfde16f51a09987ed15efd76860268ac53caf4 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 24 Jun 2016 23:21:12 -0400 Subject: [PATCH] Use $ to signify bash command prompts [ci skip] --- docs/deployment/images.md | 8 ++++---- docs/deployment/ssl-configuration.md | 2 +- docs/proxy.md | 2 +- docs/troubleshooting.md | 12 ++++++------ 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/deployment/images.md b/docs/deployment/images.md index 86c4e3e34..47c5de0c3 100644 --- a/docs/deployment/images.md +++ b/docs/deployment/images.md @@ -14,21 +14,21 @@ tags:destroy Remove app image tag Example: ``` -root@dokku:~# dokku tags node-js-app +$ dokku tags node-js-app =====> Image tags for dokku/node-js-app REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE dokku/node-js-app latest 936a42f25901 About a minute ago 1.025 GB -root@dokku:~# dokku tags:create node-js-app v0.9.0 +$ dokku tags:create node-js-app v0.9.0 =====> Added v0.9.0 tag to dokku/node-js-app -root@dokku:~# dokku tags node-js-app +$ dokku tags node-js-app =====> Image tags for dokku/node-js-app REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE dokku/node-js-app latest 936a42f25901 About a minute ago 1.025 GB dokku/node-js-app v0.9.0 936a42f25901 About a minute ago 1.025 GB -root@dokku:~# dokku tags:deploy node-js-app v0.9.0 +$ dokku tags:deploy node-js-app v0.9.0 -----> Releasing node-js-app (dokku/node-js-app:v0.9.0)... -----> Deploying node-js-app (dokku/node-js-app:v0.9.0)... -----> Running pre-flight checks diff --git a/docs/deployment/ssl-configuration.md b/docs/deployment/ssl-configuration.md index b20aedf54..adcd5b83d 100644 --- a/docs/deployment/ssl-configuration.md +++ b/docs/deployment/ssl-configuration.md @@ -54,7 +54,7 @@ If you decide to obtain a CA signed certficate, you can import that certificate The `certs:info` command will simply inspect the install SSL cert and print out details. NOTE: The server-wide certificate will be inspect if installed and no app-specific certificate exists. ``` -root@dokku:~/dokku# dokku certs:info node-js-app +$ dokku certs:info node-js-app -----> Fetching SSL Endpoint info for node-js-app... -----> Certificate details: =====> Common Name(s): diff --git a/docs/proxy.md b/docs/proxy.md index 57d685394..5cc330044 100644 --- a/docs/proxy.md +++ b/docs/proxy.md @@ -27,7 +27,7 @@ $ docker inspect --format '{{ .NetworkSettings.IPAddress }}' node-js-app.web.1 172.17.0.6 # container bound to all interfaces -root@dokku:/home/dokku# docker ps +$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d6499edb0edb dokku/node-js-app:latest "/bin/bash -c '/star About a minute ago Up About a minute 0.0.0.0:49153->5000/tcp node-js-app.web.1 ``` diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 03d6e077a..5a6da26c6 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -7,7 +7,7 @@ __Solution:__ Most of the time it's caused by some defaults newer versions of nginx set. To make sure that's the issue you're having run the following: ``` -root@dockerapps:/home/git# nginx +$ nginx -t nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32 ``` @@ -27,9 +27,9 @@ A value of 64 would allow domains with up to 64 characters. Set it to 128 if you Save the file and try stopping nginx and starting it again: ``` -root@dockerapps:~/dokku# /etc/init.d/nginx stop +$ /etc/init.d/nginx stop * Stopping nginx nginx [ OK ] -root@dockerapps:~/dokku# /etc/init.d/nginx start +$ /etc/init.d/nginx start * Starting nginx nginx [ OK ] ``` @@ -65,14 +65,14 @@ __Solution (Less solution, more helpful troubleshooting steps):__ Find the failed phase's container image (*077581956a92* in this example) ``` - root@dokku:~# docker ps -a | grep build + $ docker ps -a | grep build 94d9515e6d93 077581956a92 "/build" 29 minutes ago Exited (0) 25 minutes ago cocky_bell ``` Start a new container with the failed image and poke around (i.e. ensure you can access the internet from within the container or attempt the failed command, if known) ``` - root@dokku:~# docker run -ti 077581956a92 /bin/bash + $ docker run -ti 077581956a92 /bin/bash root@9763ab86e1b4:/# curl -s -S icanhazip.com 192.168.0.1 curl http://s3pository.heroku.com/node/v0.10.30/node-v0.10.30-linux-x64.tar.gz -o node-v0.10.30-linux-x64.tar.gz @@ -84,7 +84,7 @@ __Solution (Less solution, more helpful troubleshooting steps):__ Additionally we've seen issues if changing networks that have different DNS resolvers. In this case, you can run the following to update your resolv.conf ``` - root@dokku:~# resolvconf -u + $ resolvconf -u ``` Please see https://github.com/dokku/dokku/issues/841 and https://github.com/dokku/dokku/issues/649