D
D
DYLAN2020-05-13 17:23:22
Docker
DYLAN, 2020-05-13 17:23:22

How to increase the size of Local Volumes?

There is the following mariadb base setting
docker-compose.xml

mysql:
    image: mariadb:10.3.9
    healthcheck:
      test: "/usr/bin/mysql --user=root --password=pass --execute \"SHOW DATABASES;\""
      interval: 2s
      timeout: 20s
      retries: 10
    ports:
      - "3306:3306"
    volumes:
      - ./db:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: pass
      MYSQL_DATABASE: sitemanager
      MYSQL_USER: app
      MYSQL_PASSWORD: pass
    command: ['--innodb-use-native-aio=0', '--innodb-flush-method=fsync', '--character-set-server=utf8', '--collation-server=utf8_unicode_ci', '--skip-character-set-client-handshake', '--sql-mode=']


Everything worked fine, but at one point it stopped. It cannot start the container with the base, because the base crashes with errors.

Mistakes of various kinds, for example:
2020-05-13 13:19:05 0 [ERROR] InnoDB: preallocating 50331648 bytes for file ./ib_logfile101 failed with error 38
2020-05-13 13:19:05 0 [ERROR] InnoDB: Cannot set log file ./ib_logfile101 size to 50331648 bytes


If you enter docker system df , then
TYPE                TOTAL               ACTIVE              SIZE                RECLAIMABLE
Images              30                  2                   4.864GB             3.785GB (77%)
Containers          2                   1                   4.482kB             0B (0%)
Local Volumes       20                  0                   707.6MB             707.6MB (100%)
Build Cache         0                   0                   0B                  0B


Local Volumes = 100%
I actually think that all the troubles are in it. How can I increase the volume of Local Volumes , or maybe somehow I need to forward the database to the container somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-05-13
@q2digger

What system is this running on? macos or windows?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question