Skip to content

webdriver fail in docker when use ava (parallel tests mode) #27

@huan

Description

@huan

ava tests run ok on windows & linux, but not ok inside docker.

according to elgalu/docker-selenium#20 (comment) , this is due to /dev/shm memory size too small.

$ df -h
shm              64M  3.2M   61M   5% /dev/shm

it's only 64M

Solution

  1. increase shm size with --shm-size param with build & run Addition of "--shm-size" to which size of /dev/shm is changed moby/moby#16168 (comment)
  2. use --privileged when run docker, then mount /dev/shm -o remount,size=1g bigger /dev/shm moby/moby#2606 (comment)
  3. use -v /dev/shm:/dev/shm when run docker. node-chome tab crash in docker only SeleniumHQ/docker-selenium#79 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions