This page (revision-12) was last changed on 23-Apr-2022 17:05 by Harry Metske

This page was created on 23-Apr-2022 17:06 by unknown

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
12 23-Apr-2022 17:05 12 KB Harry Metske to previous
11 23-Apr-2022 17:06 12 KB Harry Metske to previous | to last
10 23-Apr-2022 17:06 11 KB Harry Metske to previous | to last
9 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
8 23-Apr-2022 17:06 7 KB Harry Metske to previous | to last
7 23-Apr-2022 17:06 7 KB Harry Metske to previous | to last
6 23-Apr-2022 17:06 7 KB Harry Metske to previous | to last
5 23-Apr-2022 17:06 5 KB Harry Metske to previous | to last Docker JSPWiki ==> Docker-JSPWiki
4 23-Apr-2022 17:06 5 KB Harry Metske to previous | to last
3 23-Apr-2022 17:06 3 KB Harry Metske to previous | to last
2 23-Apr-2022 17:06 3 KB Harry Metske to previous | to last
1 23-Apr-2022 17:06 160 bytes unknown to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 112 added 31 lines
!!!
* Removing the container
If you want to get rid of the container (and all of the data in it !) you first should stop it, and the you can remove it with the {{docker rm}} command:
{{{
[root@vbox ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e1da0696c689 harry:jspwiki-2.10.2-svn-14 "/bin/sh -c '/usr/lo 42 hours ago Up 11 minutes 0.0.0.0:80->8080/tcp jspwiki_80
[root@vbox ~]# docker stop jspwiki_80
jspwiki_80
[root@vbox ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e1da0696c689 harry:jspwiki-2.10.2-svn-14 "/bin/sh -c '/usr/lo 42 hours ago Exited (143) 6 seconds ago jspwiki_80
[root@vbox ~]# docker rm jspwiki_80
jspwiki_80
[root@vbox ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@vbox ~]#
}}}
Note that all your data is lost when you remove the container. (You can keep data apart using docker volumes, see next paragraph)
!!! Persistent data
If you use docker to run jspwiki only for quick test purposes, you probably are not interested in keeping the data (created/changed pages, registered users, logfiles).\\
But you can also run a jspwiki docker container in production like environments where you want to keep your data even after you removed a container. As an example you might sometimes want to run a newer version of your jspwiki docker container.
To keep data outside of the container, you can use the
At line 115 removed one line
* remove the container
At line 117 changed one line
* persistent pages, howto