softshipper
softshipper

Reputation: 34071

How to reserve the size for the container?

I would like to use this docker file https://github.com/filak-sap/sap-nw-abap-docker to install the container.

On the github website under the installation construction, it says:

Set up docker on your instance

docker daemon --storage-opt dm.basesize=60G 

When I typed it into the terminal, the output is:

docker daemon --storage-opt dm.basesize=60G
unknown flag: --storage-opt
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers  

What do I have to do?

Upvotes: 1

Views: 954

Answers (1)

codinghaus
codinghaus

Reputation: 2358

--storage-opt is an option of dockerd (Docker daemon) and not docker (Docker client) so you can only use this when starting docker with dockerd. So you have to stop the docker daemon and then you can restart it with dockerd --storage-opt dm.basesize=60G

The alternative is to put this manually into the daemon.json which is located at /etc/docker/daemon.json (on linux systems).

This would look like:

{
        "storage-opts": [ "dm.basesize=60G" ]
}

Upvotes: 1

Related Questions