Alpine Image Error: /bin/sh: Can't Access Tty; Job Control Turned Off

Just browsing Stack Overflow? Help us improve your experience. Sign up for research
    1. Home
    2. Questions
    3. Tags
    4. Users
    5. Companies
    6. Labs
    7. Jobs
    8. Discussions
    9. Collectives
    10. Communities for your favorite technologies. Explore all Collectives

  1. Teams

    Ask questions, find answers and collaborate at work with Stack Overflow for Teams.

    Try Teams for free Explore Teams
  2. Teams
  3. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams

Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Get early access and see previews of new features.

Learn more about Labs alpine image error: /bin/sh: can't access tty; job control turned off Ask Question Asked 2 years, 6 months ago Modified 2 years, 6 months ago Viewed 2k times 2

I have redis pod with cpec:

spec: containers: - name: master image: xyzwy/redis:7.0 command: ["sh", "-ic"] args: - redis-server - /bin/sh

when I deploy it i get an error in a first line:

***/bin/sh: can't access tty; job control turned off*** 1:C 09 May 2022 13:31:44.287 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 09 May 2022 13:31:44.287 # Redis version=7.0.0, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 09 May 2022 13:31:44.287 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 1:M 09 May 2022 13:31:44.288 * monotonic clock: POSIX clock_gettime 1:M 09 May 2022 13:31:44.289 * Running mode=standalone, port=6379. 1:M 09 May 2022 13:31:44.289 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 1:M 09 May 2022 13:31:44.290 # Server initialized 1:M 09 May 2022 13:31:44.291 * The AOF directory appendonlydir doesn't exist 1:M 09 May 2022 13:31:44.291 * Ready to accept connections

how can I solve this?

Share Improve this question Follow edited May 11, 2022 at 7:43 Gabriel Robledo Ahumada's user avatar Gabriel Robledo Ahumada 1,6815 silver badges14 bronze badges asked May 9, 2022 at 13:35 a11eksandar's user avatar a11eksandara11eksandar 1952 silver badges14 bronze badges 2
  • 1 Omit the -i since your pod is for sure not -interactive – mdaniel Commented May 9, 2022 at 15:36
  • You don't really need the shell wrapper at all here; just set command: [redis-server] with no args: (or make this be your Docker image's standard CMD and omit both parts in the Kubernetes YAML). – David Maze Commented May 9, 2022 at 23:08
Add a comment |

1 Answer 1

Sorted by: Reset to default Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) 1

Problem was in

command: ["sh", "-ic"]

-i can not be there, it is not interactive

Share Improve this answer Follow answered May 11, 2022 at 7:52 a11eksandar's user avatar a11eksandara11eksandar 1952 silver badges14 bronze badges Add a comment |

Your Answer

Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. Learn more

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid …

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

Draft saved Draft discarded

Sign up or log in

Sign up using Google Sign up using Email and Password Submit

Post as a guest

Name Email

Required, but never shown

Post Your Answer Discard

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.

  • The Overflow Blog
  • Your docs are your infrastructure
  • Featured on Meta
  • More network sites to see advertising test [updated with phase 2]
  • We’re (finally!) going to the cloud!
  • Call for testers for an early access release of a Stack Overflow extension...
261 Starting a shell in the Docker Alpine container 1 Cannot return to shell session after script 25 How to fix the WARNINGs when running the redis:alpine Docker image 4 How to fix "Pseudo-terminal will not be allocated because stdin is not a terminal" in Alpine Linux? 3 Alpine 3.6 Docker container error on stop (exit code 137) 25 Install Redis on Alpine based image in docker 2 /bin/sh: app: not found 2 Bash on alpine linux 1 Alpine Image standard_init_linux.go:207: exec user process caused "no such file or directory" 1 Linux commands in Alpine docker image +755 invalid mode

Hot Network Questions

  • Does length contraction "break the speed limit"?
  • What would T-Rex cavalry be used for?
  • Weapon Mastery and Weapon Cantrips
  • Will a laptop battery that stays connected to its charger be damaged?
  • What is this Stardew Valley item?
  • A novel about Earth crossing a toxic cloud of cosmic size
  • How can I politely decline a request to join my project by a free rider professor
  • What does GB Shaw mean when he says "like the butcher's wife in the old catch" here?
  • How can I avoid overusing her/she or the character name when describing character action
  • How important is storytelling when submitting a grant application (or even a science paper)?
  • Why is a pure copper cathode necessary in the electrolytic refining of copper?
  • If "de-" means "down" or "off" and "sub-" means "under", what is the latin prefix- meaning "up"?
  • Standard SMD chip resistor with higher power in the same package
  • Is every paracompact CCC space Lindelöf?
  • Fastest quasi-random function in 6502?
  • What is the polymorph reached by letting the chocolate cool down?
  • "Elegant" conditions on two quadratics (with positive real roots) to ensure that the larger root of one is less than the smaller root of the other
  • How do I add a trusted check constraint quickly
  • Group cohomology valued in a bimodule
  • Being honest with rejection vs. preparing applicant for future possibility
  • Skylab's Boom during EVA
  • Why did the angel strain or dislocate Yaakov's hip-socket?
  • What exactly is the cornerstone that Mark 12:10 speaks of?
  • Why hot refers to being closer and cold refers to moving away in the hotter/colder game?
more hot questions Question feed Subscribe to RSS Question feed

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Từ khóa » Volumio Sh Can't Access Tty Job Control Turned Off