in Education by
I have a Docker container with MariaDB installed. I am not using any volumes. [vagrant@devops ~]$ sudo docker volume ls DRIVER VOLUME NAME [vagrant@devops ~]$ Now something strange is happening. When I do sudo docker stop and sudo docker start the MariaDB data is still there. I expected this data to be lost. Btw when I edit some file for example /etc/hosts I do see the expected behavior. Changes to this file are lost after restart. How is it possible that MariaDB data is persistent without volumes? This shouldn't happen right? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
docker stop does not remove a container, neither does docker start create a container. docker run does create a new container from a image. docker start starts a container which does exist but has been stopped before ( call it pause/resume if you like ). Thus for start/stop no volumes are required to keep the state persistent. if you though do docker stop && docker rm and then docker start you get and error, that the container does no longer exist - so now you need docker run youimage

Related questions

0 votes
    How are Persistent volumes different from the Volumes used by containers (1)they are more Persistent (2)None of these (3)They ... than that of Pods (4)They do not have a lifecycle...
asked Sep 19, 2021 in Education by JackTerrance
0 votes
    Where are docker volumes stored in docker?...
asked Jun 20, 2021 in Technology by JackTerrance
0 votes
    Heyy mates..Am an icse student can anyone tell me any importance for java please its urgent I have my exam ... please for icse java. Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    I'm trying to teach myself about Docker and using the docker-compose.yml to play around with images and ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 8, 2022 in Education by JackTerrance
0 votes
    So I have a Nginx running inside a docker container, I have a mysql running on the host system, I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I have a dynamic website on my domain made using the codeigniter framework. I don't know how cpanel ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    So I'm basically finished with a program, and at the end of it I'm printing Strings from an array to a file. The array may ... the code I'm using to check for null for(int i=0;i...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    I am simply trying to read each character from a file and print them in the screen. For testing, I tried to print ... ("count.txt"); } void CountLetters(string filename) { cout...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    I am simply trying to read each character from a file and print them in the screen. For testing, I tried to print ... ("count.txt"); } void CountLetters(string filename) { cout...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Do I need to use separate Docker containers for my complex web application or I can put all required services in ... in one container? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Which of the following system most often don't have postscript viewer? (a) Windows (b) Linux (c) Mac ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 30, 2021 in Education by JackTerrance
0 votes
    Where can we test the apple iPhone apps if we don’t have an iOS device?...
asked Nov 30, 2020 in Technology by JackTerrance
0 votes
    Give me some Information about Quantum Computer… Please…don’t copy from Google or any other sites… Don’t give me any irrelevant answer… Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    solve Any four Input two output problems Implementing dont cares in the K-maps Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
...