1. Problem description The storage installed in the docker container has been in the exit state, resulting in the inability to store files. 2. Solution View the containers installed in Docker
Try starting the container
If the container is still in the exited state after trying to start it, delete the container
Enter the /var/fdfs folder and delete the storage file cd /var/fdfs sodo rm -r storage Reinstall the storage container
Check whether the container is started successfully 3. Test whether the container can be used normally Note: To test in Python's Django module, you need to install the fdfs_client module
Enter the Django shell environment
Write in the shell environment from fdfs_client.client import Fdfs_client # client.conf is the configuration file fdfs = Fdfs_client('utils/fastdfs/client.conf') # Upload the file by file name fdfs.upload_by_filename('media/2018.png') Get the response back Test whether the path is successful
Summarize This is the end of this article about the problem and solution of docker using storage and exit causing files to be unable to upload to the server. For more related content about docker using storage and exit causing files to be unable to upload to the server, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: SQL injection vulnerability process example and solution
>>: MySQL MyISAM default storage engine implementation principle
First time using docker to package and deploy ima...
This article shares the specific code of NodeJS t...
1. Single table query -> update UPDATE table_n...
<br />Some web pages may not look large but ...
Docker is an open source project that provides an...
When saving data in MySQL, sometimes some messy a...
Since Zabbix version 3.0, it has supported encryp...
Today I will introduce the most basic functions of...
Table of contents Install mysql Configuring envir...
MyISAM and InnoDB are the most common storage eng...
Solution: Add the following code in <head>: ...
Table of contents The principle of Vue asynchrono...
In the SQL like statement, for example SELECT * F...
About who Displays users logged into the system. ...
The effect diagram is as follows: <!DOCTYPE ht...