univention / ucs-appliance-container

UCS appliance container image setup
GNU Affero General Public License v3.0
7 stars 5 forks source link

Rerun the container with exposed datas #3

Open jp-gouin opened 3 years ago

jp-gouin commented 3 years ago

Hi,

I would like to know if it's possible to rerun the container and start with a previous configuration.

I've exposed /run and /tmp and used --env RESTART=yes , but when i make a new docker run it erases my previous configuration : existing user disapear etc

Is it possible ? and if so i'm i missing something ?

FYI , i ran the following command :

FQDN=node.ucs.example; \
docker run \
--detach \
--cap-add SYS_ADMIN \
--cap-add MKNOD \
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
--volume /Users/jpgouin/Work/G3S/IAMX/run:/run \
--volume /Users/jpgouin/Work/G3S/IAMX/tmp:/tmp \
--restart unless-stopped \
--hostname ${FQDN} \
--env RESTART=yes \
--name ${FQDN} \
-p 8080:80 \
-p 8443:443 \
univention/univention-corporate-server

Thanks