简体   繁体   English

高山图像错误:/bin/sh:无法访问 tty; 作业控制已关闭

[英]alpine image error: /bin/sh: can't access tty; job control turned off

I have redis pod with cpec:我有 cpec 的 redis pod:

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?我该如何解决这个问题?

Problem was in问题出在

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

-i can not be there, it is not interactive -i 不能在那里,它不是交互式的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 /bin/sh: 无法访问 tty; 作业控制已关闭 - /bin/sh: can't access tty; job control turned off 分叉进程中的bin / sh -i问题,错误:“无法访问tty,作业控制已关闭” - Problem with bin/sh -i in a forked process, error: 'can't access tty, job control turned off' QEMU:/ bin / sh:无法访问tty; 工作控制关闭 - QEMU: /bin/sh: can't access tty; job control turned off GDB-汇编程序返回/ bin / sh:0:无法打开 - GDB - Assembly program returns /bin/sh: 0: Can't open � ".filename" 从 /bin/sh 运行时找不到文件,从 /bin/bash 运行; 为什么? - ". filename" can't find file when run from /bin/sh, works from /bin/bash; why? 手机关闭后,应用程序能否保留其根访问权限? - Can an app keep onto its root access permissions after the phone is turned off? 从execv启动终端(sh)返回错误:/ bin / sh:/ bin / sh:无法执行二进制文件 - start terminal (sh) from execv return error : /bin/sh: /bin/sh: cannot execute binary file / bin / sh:语法错误:文件结束意外 - /bin/sh: Syntax Error: end of file unexpected 可以使用内联汇编关闭保护模式吗? - Can protection mode be turned off with inline assembly? 配置:错误:无法运行/ bin / sh - Configure: error: cannot run /bin/sh
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM