• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using MariaDB on NetPi
#20
Since you have two commands that need to be started a single ENTRYPOINT reference will not help you.

Look to our ENTRYPOINT tag ... it points to "/etc/init.d/entrypoint.sh" ... if you now analyze this file you see it starting all the needed final scripts one after the other. This is how you have to do it as well.

Even if you commit a running container ... the entrypoint will remain. So if you do not want to write your own Dockerfile and container and want to stay with the committing procedure ... then make your edits in the running container in the "/etc/init.d/entrypoint.sh" file meeting your needs and make then a commit after exiting the container.

A commit will store only what's "inside" the container. If the mariadb data is in the container then it will be committed as well. External mapped volumes aren't.

In general: what else you can do with volumes you can read here https://docs.docker.com/storage/volumes/



Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
Using MariaDB on NetPi - by philump - January-7th-2020, 05:52 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-7th-2020, 07:50 AM
RE: Using MariaDB on NetPi - by philump - January-7th-2020, 10:04 PM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 07:42 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 07:55 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 08:06 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 08:12 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-7th-2020, 08:29 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-7th-2020, 08:46 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 07:27 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 08:21 AM
RE: Using MariaDB on NetPi - by philump - January-8th-2020, 11:52 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-8th-2020, 12:14 PM
RE: Using MariaDB on NetPi - by philump - January-8th-2020, 09:41 PM
RE: Using MariaDB on NetPi - by philump - January-9th-2020, 12:01 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-9th-2020, 06:36 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-9th-2020, 06:39 AM
RE: Using MariaDB on NetPi - by philump - January-10th-2020, 07:17 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-10th-2020, 07:51 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-10th-2020, 07:57 AM
RE: Using MariaDB on NetPi - by philump - January-13th-2020, 02:55 AM
RE: Using MariaDB on NetPi - by Armin@netPI - January-13th-2020, 06:47 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)