Basil Hendroff
Wizard
- Joined
- Jan 4, 2014
- Messages
- 1,644
Not sure if this has been reported (I couldn't see it in Jira) or raised in discussion in the TC forum, but I've noticed that the TC Docker container doesn't automatically restart if the Ubuntu host is rebooted. It's not so much a bug. It's more a documentation issue. Extract from the installation guide:
The highlighted directives below do two things:
After installing docker, fetch the docker image. This can be done in the Command Line Interface (CLI) by typing docker run --detach -v "/hostdirectory:/data" -p portnumber:80 -p sslport:443 ixsystems/truecommand:latest where hostdirectory is a directory on the host machine that is used as the data directory for the docker container, portnumber is the desired port number to access the web interface, and sslportnumber is the desired port number to securely access the web interface through SSL. Although there are different ways to run a docker container, make sure to use -v/hostdirectory:/data in the command.
The highlighted directives below do two things:
- Ensure that the TC container restarts after a reboot of the host system; and
- Facilitate referencing the container. The container is given a sensible name rather than the randomly generated ones like 'nervous_khorana' (which, btw, doesn't instil me with any confidence whatsoever).
run --detach -v "/hostdirectory:/data" -p portnumber:80 -p sslport:443 --restart always --name=truecommand ixsystems/truecommand:latest