Home > other >  Docker packaged content is missing
Docker packaged content is missing

Time:09-21




A server is A container, I through the commit generated image, and then in the mirror the save packaged into A package,

B is A container server, is through A server packaged mirror, less A few database, this is how to return A responsibility?

The Server B the shoe is also my own database, but packaging is successful, but no other standard red,

CodePudding user response:

Container has been stop, after a commit, to implement new image, find that there is no a few database

CodePudding user response:

Shoe the database is run the mirror when I add:
 
- e MYSQL_DATABASE=shoe



Other databases are I manually created in the database, not related to this

CodePudding user response:

Docker inspect A look at the details

CodePudding user response:

reference hemengsi123 reply: 3/f
docker inspect A look at the details of bai

See details, mainly is to look at

CodePudding user response:

1, your mysql is the mirror of build or official build
2, you mark red database for data
3, why and when you start the B - e this parameter, try do not add -e
4, when you start the B - e MYSQL_DATABASE set to you the red three databases

CodePudding user response:

reference 5 floor qq_33935295 reply:
1, is your mysql mirror build yourself or the official build
2, you mark red database for data
3, why and when you start the B - e this parameter, try do not add -e
4, when you start the B - e MYSQL_DATABASE set into three databases you mark red


1, netease is A mirror of pull
2, the data were in the container when the run, the manual of the create database
3, - e is the time to start A plus, because when I run the container requires the database
4, if B start plus - e will cover off I had to create the database

CodePudding user response:

1, to view a dockerfile look like ordinary build mysql does
2, the docke ufw joint type of file system file system, add - e even closed container, as long as restart will reload
3, restart the container a, see if there is a ecshop, XCP
Suggestion:
If it is a suggestion to use their building image, with volume for key data backup

CodePudding user response:

refer to 7th floor qq_33935295 response:
1, view a dockerfile look like ordinary build mysql does
2, the docke ufw joint type of file system file system, add - e even closed container, as long as restart will reload
3, restart the container a, see if there is a ecshop, XCP
Suggestion:
If it is a suggestion to use their building image, with volume for key data backup

1, a is directly from the hive mirror pull down
2, I don't quite understand
3, the resumption of a, the two databases remain, will not go away

CodePudding user response:

refer to the eighth floor janda2011 response:
Quote: refer to 7th floor qq_33935295 response:

1, to view a dockerfile look like ordinary build mysql does
2, the docke ufw joint type of file system file system, add - e even closed container, as long as restart will reload
3, restart the container a, see if there is a ecshop, XCP
Suggestion:
If it is a suggestion to use their building image, with volume for key data backup

1, a is directly from the hive mirror pull down
2, I don't quite understand
3, the resumption of a, the two databases remain, not disappear

When you start the b what is the command

CodePudding user response:

references 9 f qq_33935295 response:
Quote: refer to the eighth floor janda2011 response:

Quote: refer to 7th floor qq_33935295 response:

1, to view a dockerfile look like ordinary build mysql does
2, the docke ufw joint type of file system file system, add - e even closed container, as long as restart will reload
3, restart the container a, see if there is a ecshop, XCP
Suggestion:
If it is a suggestion to use their building image, with volume for key data backup

1, a is directly from the hive mirror pull down
2, I don't quite understand
3, the resumption of a, the two databases remain, not disappear

What is the command when you start the b


1, your mirror should be the mirror image of the official revised official mysql, below is the mysql image i1 start mysql script,
https://github.com/docker-library/mysql/blob/master/8.0/docker-entrypoint.sh
2, when you create the container will be executed this script
You through e - this parameter is set the environment variable
You set the MYSQL_DATABASE this parameter
3, when you submit a mirror save environment variable
4, when you start the b, executes the script, due to the MYSQL_DATABASE environment variable configuration, will create the database,

Question screen
1, will check b log initialize database
2, check to see if the mysql logs to manipulate data to
3, to see if there are any more data, the database of the select command

CodePudding user response:

The
references to the tenth floor qq_33935295 response:
problems trying to identify
1, will check b log initialize database
2, check to see if the mysql logs to manipulate data to
3, to see if there are any more data of database, the select command


My image is netease honeycomb mysql mirror, address the following:
https://c.163.com/hub#/m/repository/? RepoId=2955

1, there is no initialization, still put me in the operation of a data,
2, there is a logging operation
3, there is a data

Command to start:
 docker run - d - name mysql -p 3306:3306 b/mysql 

Because I can specify when a root account, and to create my database, so I only run when I was in b does not do other operating parameters

CodePudding user response:

Don't know what people do to database change

11 references janda2011 response:
Quote: reference to the tenth floor qq_33935295 response:

Question screen
1, will check b log initialize database
2, check to see if the mysql logs to manipulate data to
3, to see if there are any more data of database, the select command


My image is netease honeycomb mysql mirror, address the following:
https://c.163.com/hub#/m/repository/? RepoId=2955

1, there is no initialization, still put me in the operation of a data,
2, there is a logging operation
3, there is a data

Command to start:
 docker run - d - name mysql -p 3306:3306 b/mysql 

Because I can specify when a root account, and create my database, so I only run when I was in b don't do other operation parameters


Don't know others which changes for mysql, suggest you build mirror use, submit mirror container to stop service, best can bring some problems

CodePudding user response:

refer to 12 floor qq_33935295 reply:
don't know what are the changes made to mysql others, suggest you build mirror, mirror container stop best service, may bring some problems


In general after a commit, will all the container to generate images, including container operation data, can it really be I the source image has a problem?

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related