Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Container restart policy not set by documented "docker run" command #14

@GotSka81

Description

@GotSka81

Image Setup Details

  • Image Tag: latest
  • Docker Host OS: Ubuntu 18.04.4 LTS
  • docker run command or docker-compose.yml file:
$ docker run -d \
    -v steam:/home/steam/Steam \
    -v ark:/ark \
    -p 27015:27015 -p 27015:27015/udp \
    -p 7778:7778 -p 7778:7778/udp \
    -p 7777:7777 -p 7777:7777/udp \
    thmhoag/arkserver

Description of Issue

The container restart policy is not set by documented "docker run" command. The default restart policy for Docker is "no", and as a result, the container will stop and fail to restart when the arkmanager CRON job for restarting the ark server instance triggers. This CRON job runs at 10:15am every day (UTC time).

Additional Information

Docker documentation about restart policy: https://docs.docker.com/config/containers/start-containers-automatically/

CRON job code from run.sh file that triggers restart (line 69): 15 10 * * * arkmanager restart --warn --saveworld

Recommend updating documented "docker run" command to include "--restart always"

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation needs updated to inform on this topicgood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions