Docker causing “device not tty” error

I’m running Docker on an RPi4 with latest Raspian 64bit OS. When I try to run a script (RPi-clone)I get errors indicating “the input device is not a tty”. Along with that my destination device on /dev/sda is not properly recognized. This occurs both direct console or ssh logins. The script runs with no issue prior to installation of Docker. I have researched and tried different solutions for two days and have come up empty. Can anyone offer any help on this? I have used RPi-clone for several years on other RPis with no issues.

Docker will not tinker with drives, or the terminal. It will tinker with firewall rules.

Please share the output of following commands:

docker info
dpkg -l | grep docker

Thanks for you reply!
Results of commands below.
~Bob

bob@RPi4-58-59:~ $ docker info
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.20.1)
compose: Docker Compose (Docker Inc., v2.32.4)

Server:
Containers: 3
Running: 3
Paused: 0
Stopped: 0
Images: 5
Server Version: 20.10.24+dfsg1
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 1.6.20~ds1-1+b1
runc version: 1.1.5+ds1-1+deb12u1
init version:
Security Options:
seccomp
Profile: default
cgroupns
Kernel Version: 6.6.51+rpt-rpi-v8
Operating System: Debian GNU/Linux 12 (bookworm)
OSType: linux
Architecture: aarch64
CPUs: 4
Total Memory: 7.627GiB
Name: RPi4-58-59
ID: LIEI:4NTA:BL4H:IJJP:CIQS:Q7ZB:JAVO:7RYT:MYMD:DTST:AULI:J6VN
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

WARNING: No memory limit support
WARNING: No swap limit support

======================================
bob@RPi4-58-59:~ $ dpkg -l | grep docker
ii docker-buildx-plugin 0.20.1-1~debian.12~bookworm arm64 Docker Buildx cli plugin.
rc docker-ce 5:28.0.0~rc.1-1~debian.12~bookworm arm64 Docker: the open-source application container engine
ii docker-compose 1.29.2-3 all define and run multi-container Docker applications with YAML
ii docker-compose-plugin 2.32.4-1~debian.12~bookworm arm64 Docker Compose (V2) plugin for the Docker CLI.
ii docker.io 20.10.24+dfsg1-1+deb12u1 arm64 Linux container runtime
ii python3-docker 5.0.3-1 all Python 3 wrapper to access docker.io’s control socket
ii python3-dockerpty 0.4.1-4 all Pseudo-tty handler for docker Python client (Python 3.x)

So you are using the docker package from the bookworm distribution repositories. Those distribution packages are not maintained and supported by docker itself, but by the maintainer of the package

If you want vanilla docker experience, please use docker-ce from docker’s repositories. Here is a link to the official installation description:https://docs.docker.com/engine/install/debian/.

1 Like

@meyay
Thanks for the advice! I will rebuild my setup using Docker as you suggested. I obviously pretty new to Docker and I appreciate the input!

Regards
~Bob

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.