Skip to content

Instantly share code, notes, and snippets.

root@dokku:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1806ce290cc4 usman/docker-seyren "/usr/bin/run-seyren." 3 minutes ago Up 3 minutes 8080/tcp lonely_kare
root@dokku:~# docker inspect -f '{{ .NetworkSettings.Networks.bridge.IPAddress }}' lonely_kare
172.17.0.2
root@dokku:~# curl -I 172.17.0.2:8080
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 28 Jul 2016 16:11:00 GMT
diff --git a/plugins/ps/functions b/plugins/ps/functions
index 8599fc0..5a99494 100755
--- a/plugins/ps/functions
+++ b/plugins/ps/functions
@@ -42,7 +42,7 @@ generate_scale_file() {
local DOKKU_PROCFILE="$DOKKU_ROOT/$APP/DOKKU_PROCFILE"
verify_app_name "$APP"
- copy_from_image "$IMAGE" "/app/DOKKU_SCALE" "$DOKKU_ROOT/$APP" 2>/dev/null || true
+ copy_from_image "$IMAGE" "DOKKU_SCALE" "$DOKKU_ROOT/$APP" 2>/dev/null || true
@michaelshobbs
michaelshobbs / gist:05344c883f47fd355011
Last active February 27, 2016 02:23
docker ps and images post dokku deploy
root@dokku:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
071ba2afa99c dokku/node-js-app:latest "/bin/bash -c 'cd /ap" 11 seconds ago Exited (0) 10 seconds ago loving_torvalds
279e5a26cdd6 dokku/node-js-app:latest "/start web" 18 seconds ago Up 17 seconds node-js-app.web.1
facb6bb535fc dae521d5a487 "/bin/bash -c 'cd /ap" 20 seconds ago Exited (0) 19 seconds ago jolly_einstein
3fa6d14e94cf a0e8a6893014 "/bin/bash -c 'mkdir " 21 seconds ago Exited (0) 20 seconds ago angry_bell
9cbfae9fbf90 53cbdbe1d44b "/build" 39 seconds ago Exited (0) 23 seconds ago lonely_mahavira
2245e70b9201 cef5bfb4c4cd "/bin/bash -c 'cat >>" 39
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ [[ -n 1 ]]
+ set -x
+ parse_args enter node-js-app web ls
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ case "$arg" in
+ for arg in '"$@"'
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ [[ -n 1 ]]
+ set -x
+ parse_args --rm run node-js-app ls
+ for arg in '"$@"'
+ case "$arg" in
+ export DOKKU_RM_CONTAINER=1
+ DOKKU_RM_CONTAINER=1
+ for arg in '"$@"'
{{define "log.config"}}
access_log /var/log/nginx/{{.APP}}-access.log;
error_log /var/log/nginx/{{.APP}}-error.log;
{{end}}
{{define "location.config"}}
location / {
gzip on;
gzip_min_length 1100;
root@dokku:~/dokku# dokku config node-js-app
=====> node-js-app config vars
DATABASE_URL: mysql://mysql:ba1c37be637af4e0@dokku-mysql-lolipop:3306/lolipop
DOKKU_APP_RESTORE: 1
DOKKU_NGINX_PORT: 80
root@dokku:~/dokku# dokku enter node-js-app web
u2074@ba9a4cb55e26:~$ env | grep -i mysql
DOKKU_MYSQL_LOLIPOP_PORT_3306_TCP_ADDR=172.17.0.3
DOKKU_MYSQL_LOLIPOP_ENV_MYSQL_USER=mysql
DOKKU_MYSQL_LOLIPOP_ENV_MYSQL_PASSWORD=ba1c37be637af4e0
Pseudo-terminal will not be allocated because stdin is not a terminal.
Counting objects: 185, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (91/91), done.
Writing objects: 100% (185/185), 30.52 KiB | 0 bytes/s, done.
Total 185 (delta 80), reused 185 (delta 80)
-----> Cleaning up...
-----> Building python-getting-started from herokuish...
-----> Adding BUILD_ENV to build environment...
-----> Python app detected
remote: + /var/lib/dokku/plugins/enabled/git/commands git-build-locked test-nodejs-express-24805 e3da168ea919a01a53841018b7f4ec50b218964f
remote: + source /var/lib/dokku/core-plugins/available/common/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: + source /var/lib/dokku/plugins/available/apps/functions
remote: ++ set -eo pipefail
remote: ++ [[ -n 1 ]]
remote: ++ set -x
remote: ++ source /var/lib/dokku/core-plugins/available/common/functions
@michaelshobbs
michaelshobbs / gist:c819644c0a045d214c08
Created November 19, 2015 14:56
dokku named-containers debug
-----> Running post-deploy
remote: + APP=my-cool-guy-test-app
remote: + APP_ROOT=/home/dokku/my-cool-guy-test-app
remote: ++ stat -t /home/dokku/my-cool-guy-test-app/CONTAINER.web.1
remote: + [[ -z /home/dokku/my-cool-guy-test-app/CONTAINER.web.1 65 8 81b4 1000 1000 fc00 1570552 1 0 0 1447944429 1447944429 1447944429 0 4096 ]]
remote: + for container in '"$APP_ROOT"/CONTAINER.*'
remote: + echo -n '/home/dokku/my-cool-guy-test-app/CONTAINER.web.1 '
remote: + cat /home/dokku/my-cool-guy-test-app/CONTAINER.web.1
/home/dokku/my-cool-guy-test-app/CONTAINER.web.1 81946dadb6f8bd06fd244108711fdb23616faeeaca03de7f0ac6dd7726525555
remote: + docker ps -a