I try to start Selenium (4.13.0) on an Ubuntu (20.04) server as a Docker container. The disk is formatted with xfs and quota
is enabled. The container stops immediately with an error.
Command
docker container run
--log-driver local
--publish 4444:4444
--detach
--shm-size=1g
--name selenium
--env SE_NODE_OVERRIDE_MAX_SESSIONS=true
--env SE_NODE_MAX_SESSIONS=10
--env SE_NODE_SESSION_TIMEOUT=180
selenium/standalone-chrome:4.13.0
Logs
2024-04-26 10:50:46.138 Traceback (most recent call last):
2024-04-26 10:50:46.138 File "/usr/bin/supervisord", line 11, in <module>
2024-04-26 10:50:46.138 load_entry_point('supervisor==4.1.0', 'console_scripts', 'supervisord')()
2024-04-26 10:50:46.138 File "/usr/lib/python3/dist-packages/supervisor/supervisord.py", line 350, in main
2024-04-26 10:50:46.138 options = ServerOptions()
2024-04-26 10:50:46.138 File "/usr/lib/python3/dist-packages/supervisor/options.py", line 439, in __init__
2024-04-26 10:50:46.138 existing_directory, default=tempfile.gettempdir())
2024-04-26 10:50:46.138 File "/usr/lib/python3.8/tempfile.py", line 425, in gettempdir
2024-04-26 10:50:46.138 tempdir = _get_default_tempdir()
2024-04-26 10:50:46.138 File "/usr/lib/python3.8/tempfile.py", line 357, in _get_default_tempdir
2024-04-26 10:50:46.138 raise FileNotFoundError(_errno.ENOENT,
2024-04-26 10:50:46.138 FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Disk usage
ubuntu@my-server:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 9.7G 6.1G 3.6G 64% /
[...]
/dev/xvdb 22G 8.9G 12G 44% /mnt/docker-data
Configuration
ubuntu@my-server:~$ cat /etc/docker/daemon.json
{
"data-root": "/mnt/docker-data"
}
ubuntu@my-server:~$ cat /etc/fstab
LABEL=cloudimg-rootfs / ext4 defaults,discard 0 0
UUID=f37b6675-93d5-405d-a68e-aeb459872297 /mnt/docker-data xfs defaults,quota,prjquota,pquota,gquota 0 0
Question
How to start Selenium in a Docker container on a xfs disk with quota
enabled?
1