Docker error solve problems

In this tutorial, I’m sharing the docker in the builder and running Docker. Solve problem Docker error. Docker skill needed for DevOps.

“Build, Manage and Secure Your Apps Anywhere. Your Way.” Quote from docker!

Docker error

ERROR 1: Unsupported config option in docker-compose.yml

ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for networks: 'bridge'
Unsupported config option for DB01: 'networks'
Unsupported config option for WEB01: 'networks'
Unsupported config option for volumes: 'web_mnt_nfs'

Solved Problem: version 2.0 support in file docker-compose.yml

version: '2.0'

ERROR 2: Unable to set mem_limit with docker-compose version 3.x

Solved Problem: version ‘2’ support mem_limit. Docker version “3” support memory limit as below

Version 3:
deploy:
   resources:
     limits:
        memory: 512M

ERROR 3: docker database is uninitialized and password option is not specified

error: database is uninitialized and password option is not specified
db01 | error: database is uninitialized and password option is not specified
db01 | You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
db01 | error: database is uninitialized and password option is not specified
db01 | You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
db01 | error: database is uninitialized and password option is not specified
db01 | You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
db01 | error: database is uninitialized and password option is not specified
db01 | You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
db01 | error: database is uninitialized and password option is not specified
db01 | You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
db01 | error: database is uninitialized and password option is not specified
db01 | You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
db01 | error: database is uninitialized and password option is not specified
db01 | You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
db01 | error: database is uninitialized and password option is not specified
db01 | You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
db01 | error: database is uninitialized and password option is not specified
db01 | You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
db01 | error: database is uninitialized and password option is not specified
db01 | You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD

Solve the problem: the Set environment for docker MYSQL

   environment:
      MYSQL_ROOT_PASSWORD: 123456789
      #MYSQL_USER=huupv
      #MYSQL_PASSWORD=passforhuupv
      #MYSQL_DATABASE=DevopsRolesDB

Docker errors solve problems. I hope will this your helpful. Thank you for reading the DevopsRoles page!

About HuuPV

My name is Huu. I love technology, especially Devops Skill such as Docker, vagrant, git, and so forth. I like open-sources, so I created DevopsRoles.com to share the knowledge I have acquired. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.