• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using MariaDB on NetPi
#10
Quote:Can I stop a running container and open the port and reopen it? Or do I reinstall with the port mapping?

The port mapping of a container is always handed over during the "docker run" command and hence can be called only one time in a containers life. There is not a command such as "docker add port" to open another port during a container is running. But every new "docker run" command starts another instance of the original image and all edits you did in your current container are lost.

Of course what you can do is the following: once you have finished your container development on your raspberry pi ... you call "exit" in the container and you are back on your host. Now you left the container in its last state and now you can make a new image of this container with the "docker commit" https://docs.docker.com/engine/reference...ne/commit/. And then this committed container can be started again with the "docker run" and new port mapping parameters.
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: 1 Guest(s)