[Docker] Dump on RHEL7 does not work #3881

Closed
opened 2025-11-02 05:29:25 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @roycec on GitHub (Sep 2, 2019).

  • Gitea version (or commit ref): 1.9.2 (Docker container)
  • Git version:
  • Operating system: RHEL7
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
    unknown shorthand flag: 'w' in -w

Description

I try to follow the instructions on https://docs.gitea.io/en-us/backup-and-restore/, but when I run the command, I get the following error

unknown shorthand flag: 'w' in -w
See 'docker exec --help'.

I run the database and gitea inside docker containers. On RHEL7 we use the Red Hat provided docker package (1.13.1). Obviously that docker version does not have a "-w" option

# docker exec --help

Usage:  docker exec [OPTIONS] CONTAINER COMMAND [ARG...]

Run a command in a running container

Options:
  -d, --detach               Detached mode: run command in the background
      --detach-keys string   Override the key sequence for detaching a container
  -e, --env list             Set environment variables (default [])
      --help                 Print usage
  -i, --interactive          Keep STDIN open even if not attached
      --privileged           Give extended privileges to the command
  -t, --tty                  Allocate a pseudo-TTY
  -u, --user string          Username or UID (format: <name|uid>[:<group|gid>])

If I ommit the flag, the dump seams not to work.

...

Originally created by @roycec on GitHub (Sep 2, 2019). - Gitea version (or commit ref): 1.9.2 (Docker container) - Git version: - Operating system: RHEL7 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: `unknown shorthand flag: 'w' in -w` ## Description I try to follow the instructions on https://docs.gitea.io/en-us/backup-and-restore/, but when I run the command, I get the following error ``` unknown shorthand flag: 'w' in -w See 'docker exec --help'. ``` I run the database and gitea inside docker containers. On RHEL7 we use the Red Hat provided docker package (1.13.1). Obviously that docker version does not have a "-w" option ``` # docker exec --help Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...] Run a command in a running container Options: -d, --detach Detached mode: run command in the background --detach-keys string Override the key sequence for detaching a container -e, --env list Set environment variables (default []) --help Print usage -i, --interactive Keep STDIN open even if not attached --privileged Give extended privileges to the command -t, --tty Allocate a pseudo-TTY -u, --user string Username or UID (format: <name|uid>[:<group|gid>]) ``` If I ommit the flag, the dump seams not to work. ...
GiteaMirror added the issue/staletype/docs labels 2025-11-02 05:29:25 -06:00
Author
Owner

@roycec commented on GitHub (Sep 2, 2019):

If I run the dump command inside the container

su - git -c "/app/gitea/gitea dump -c /data/gitea/conf/app.ini --tempdir /tmp"

an empty directory will be created.

@roycec commented on GitHub (Sep 2, 2019): If I run the dump command inside the container `su - git -c "/app/gitea/gitea dump -c /data/gitea/conf/app.ini --tempdir /tmp"` an empty directory will be created.
Author
Owner

@stale[bot] commented on GitHub (Nov 14, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Nov 14, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Nov 28, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Nov 28, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3881