Issue with Docker on Digital Ocean plan. Would you like to attempt to recover space by cleaning docker images and containers in the system?(y/N)y docker: 'system' is not a docker command

Hi. Im trying to rebuild my app and get the following error:’

root@discourse-2gb-nyc3-01:/var/discourse# ./launcher rebuild app
Ensuring launcher is up to date
Fetching origin
remote: Counting objects: 77, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 77 (delta 50), reused 56 (delta 49), pack-reused 20
Unpacking objects: 100% (77/77), done.
From https://github.com/discourse/discourse_docker
378d927..42504d3 master -> origin/master
+ f38ec69...583394d check-free-space -> origin/check-free-space (forced update)
* [new branch] fix-hsts -> origin/fix-hsts
* [new branch] revert-358-no-env-in-bootstrapped-image -> origin/revert-358-no-env-in-bootstrapped-image
Updating Launcher
Updating 378d927..42504d3
Fast-forward
image/auto_build.rb | 7 ++++---
image/base/Dockerfile | 9 +++++++--
image/base/install-imagemagick | 2 +-
image/base/install-pngquant | 7 ++-----
image/discourse_test/Dockerfile | 3 ++-
launcher | 16 ++++++++++++++++
samples/mail-receiver.yml | 2 +-
templates/web.letsencrypt.ssl.template.yml | 2 +-
templates/web.ssl.template.yml | 6 ++++++
9 files changed, 40 insertions(+), 14 deletions(-)
flag provided but not defined: --format
See '/usr/bin/docker info --help'.
You have less than 5GB of free space on the disk. You will need more space to continue

Would you like to attempt to recover space by cleaning docker images and containers in the system?(y/N)y
docker: 'system' is not a docker command.
See 'docker --help'.
If the cleanup was successful, you may try again now
root@discourse-2gb-nyc3-01:/var/discourse# ./launcher rebuild app
flag provided but not defined: --format
See '/usr/bin/docker info --help'.
You have less than 5GB of free space on the disk. You will need more space to continue

I contacted digital ocean who told me to run this command to see which are the large files on the account.
sudo find / -xdev -type f -size +100M

This gave me this output but I have no clue what anything is and digital ocean says they dont know either and to ask somewhere else.

root@discourse-2gb-nyc3-01:~# sudo find / -xdev -type f -size +100M
/var/lib/docker/aufs/diff/780a8273c9c35d1578ad2e9c37740643ffcc5f9a0a02ed13bd6ad3 6b1d30337e/var/www/discourse/.git/objects/pack/pack-786c3e3931ecb9c41964039462a2 ac21ab04f903.pack
/var/lib/docker/aufs/diff/62de8bb092bdbcfa1c2e276e651597f75b50e9be9fe840a49a8887 5f92d49a4e/var/www/discourse/.git/objects/pack/pack-ad1b9e467013bbde4c943b686ed0 f752aa11e241.pack
/var/lib/docker/aufs/diff/dcdadb45247a230b98d2cbf2f3919ba115c9c5be7dcbb2293b3197 94e9b898c6/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/906c19aa33de1990eae5c0ddcc8f184bffc18e2e26e3a81eb49c0e 37093d3fd0/var/www/discourse/.git/objects/pack/pack-1453eeeb2c0970e6769a7119d737 ec109d8f65cc.pack
/var/lib/docker/aufs/diff/4da38e43cac022d21a8193d829feaa5a46b41209aef340457376d3 03cf962a41/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/75408591168a8d1c7a0dd320dc6ef93ee292d139cba2a62bc5a66e e39de424cd/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/54bd77881e9857e50409c7f962f17f31207d2ced252739efb7ef17 44606850f0/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/fb7cfba393923d5768ec852510705c213877668d90cfa850dd697c d860ae4a32/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/57d799d4c06bbe4e44278bbf1b371037f4fe16047fc7e56c6f414e e0c177ece8/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/ad60b1035f646e9a125f0872ec6d96c7a57a3e104bd8eaa9201545 4c26553691/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/4482660ffadd10299985867a04e84fcdc019b8ef6e9b227f349e4e 000ed67841/var/www/discourse/.git/objects/pack/pack-1453eeeb2c0970e6769a7119d737 ec109d8f65cc.pack
/var/lib/docker/aufs/diff/a75cd7f5028f5c7bd862ed87430136d185fa4d289d902433e93bda beed6a7e54/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/d2c00d454df1d07656601d711d82471f5e5e55db10299d60dad6ba 751f468fab/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/ff74c46bd207d5715d1647c80ebf7233d4fbc8ea54d81b25d43eb8 d85de6de77/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/d2baf46996b2c0aa41294c6c6908c76e4edbecf438b1078976557d 18d18f2577/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/110963d247e29eb5a9ee8118490203d6eaea66cdee92e88b1f04ce 87d691bb16/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/6a2c56759c30fed3a6063c40520625894a2ebc2fe535eaadbe419d 966b091c14/var/www/discourse/.git/objects/pack/pack-ad1b9e467013bbde4c943b686ed0 f752aa11e241.pack
/var/lib/docker/aufs/diff/96307463bdcd7e7af65ae5ac730ba79888155fc41c6bf7d7029ab7 d53ca311c2/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/56ae0770f9955c51d01677c35f4a6f9e61f417dce2ba553b20f355 e63b2ee48b/var/www/discourse/.git/objects/pack/pack-1453eeeb2c0970e6769a7119d737 ec109d8f65cc.pack
/var/lib/docker/aufs/diff/150185fc8bdf50199dd159d9a3cee8c21fd14ef64878325f7ec486 f07ef89234/var/www/discourse/.git/objects/pack/pack-1453eeeb2c0970e6769a7119d737 ec109d8f65cc.pack
/var/lib/docker/aufs/diff/9c706298412117f289d50fac1f82afd7303e81c610bbbaeb64d921 080300d481/var/www/discourse/.git/objects/pack/pack-1453eeeb2c0970e6769a7119d737 ec109d8f65cc.pack
/var/lib/docker/aufs/diff/85f1f1d75570be4c2dca04507ad477a9784e26a7c26ecc0f506b48 5976565491/var/www/discourse/.git/objects/pack/pack-1453eeeb2c0970e6769a7119d737 ec109d8f65cc.pack
/var/lib/docker/aufs/diff/630f9ed1999332022afeceb41c3dc21d811bf6f09888fec5cedbe1 e652c817a6/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd0 12f1a8290078.pack
/var/lib/docker/aufs/diff/bd17a418c6c37e527b2f48469b0e274d2a633a78d388ced04f79e5d28b97a6f6/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd012f1a8290078.pack
/var/lib/docker/aufs/diff/190bad8da2f168ae9ca604f21374dbd9e182998635cce33e1464e065f1c561ce/var/www/discourse/.git/objects/pack/pack-1453eeeb2c0970e6769a7119d737ec109d8f65cc.pack
/var/lib/docker/aufs/diff/4257a4c8045a218a00b60a0d76398f28e122612f08289de805e08c8d903ff213/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd012f1a8290078.pack
/var/lib/docker/aufs/diff/3c2b2dffcfa267c0e6bcc5d7016b68efff7a5f0a017c51213a748d5b40d0feb8/var/www/discourse/.git/objects/pack/pack-1453eeeb2c0970e6769a7119d737ec109d8f65cc.pack
/var/lib/docker/aufs/diff/c6e55b7b8bd3b3cab54010998dd910ef6937fb5686d2f220ea7a7a3cd1c4891f/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd012f1a8290078.pack
/var/lib/docker/aufs/diff/6ea0c94616f38471a0f63b06612602578755a0c04e8f8dbb718d667cc3d86145/var/www/discourse/.git/objects/pack/pack-1453eeeb2c0970e6769a7119d737ec109d8f65cc.pack
/var/lib/docker/aufs/diff/e9ff26f9c95a36d651e2df7e4a164600fc3d0a04e8c4bfcc08c152ecb4750202/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd012f1a8290078.pack
/var/lib/docker/aufs/diff/89111fc5418ab72ed66b461df7eb94189ea40647965596c5fed731330148a969/var/www/discourse/.git/objects/pack/pack-786c3e3931ecb9c41964039462a2ac21ab04f903.pack
/var/lib/docker/aufs/diff/d378f4ccb08d23c4158ea6c47528012345d35f6836bf6e4c7c95a10aec829841/var/www/discourse/.git/objects/pack/pack-1453eeeb2c0970e6769a7119d737ec109d8f65cc.pack
/var/lib/docker/aufs/diff/dd08347f5848c56ddbc80d93755f7d8d204a667084a20e05ba3a3a0cec217529/var/www/discourse/.git/objects/pack/pack-786c3e3931ecb9c41964039462a2ac21ab04f903.pack
/var/lib/docker/aufs/diff/6abd1eebed66038a8ff39533384ac2516a4b1da10fa83bfdc020df76a72ef7ce/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd012f1a8290078.pack
/var/lib/docker/aufs/diff/3202dfb7802efe4dceeeb6b8e89c311fa4b5de718f3ee4c0bae937b9e1d4b2a6/var/www/discourse/.git/objects/pack/pack-d7a718badb9f114ee853b887fdd012f1a8290078.pack
/var/log/btmp
/var/log/btmp.1

I have the
2 GB / 40 GB Disk / NYC3 - Ubuntu Discourse on 14.04
plan on digitial ocean. My site is not the large from what I believe and Im not familiar with docker at all. Can anyone please tell me what the issues are and how to go about correcting this? Im on 1.9.0 beta 1 and getting the notice to upgrade but cant do anything. Thank you.

type docker info please

I was getting the same error. The problem is fixed now. Pls visit the following topic.

4 Likes

Thank you that worked for me.

3 Likes