Selenoid Start

1. Start Selenoid
.\cm_windows_386.exe selenoid start –vnc

OR
$current = $PWD -replace “\\”, “/” -replace “C”, “c”
docker run -d –name selenoid -p 4444:4444 -v //var/run/docker.sock:/var/run/docker.sock -v ${current}/config/:/etc/selenoid/:ro aerokube/selenoid:latest-release
2. Install relevant browser containers
docker pull selenoid/vnc:firefox:67.0
docker pull selenoid/vnc:chrome_75.0

3. Stop Selenoid
.\cm_windows_386.exe selenoid stop

4. Enable video recording
docker pull selenoid/video-recorder:latest-release

5. Start Selenoid UI
docker run -d –name selenoid-ui –link selenoid -p 8080:8080 aerokube/selenoid-ui –selenoid-uri=http://selenoid:4444

OR
.\cm_windows_386.exe selenoid-ui start

6. Stop Selenoid UI
.\cm_windows_386.exe selenoid-ui stop

7. Stop and remove containers
docker stop selenoid (Stop one or more running containers )
docker stop selenoid-ui
docker ps -a (Show all containers (default shows just running))
docker rm [CONTAINER ID] (Remove one or more containers)

Reference: https://linuxize.com/post/how-to-remove-docker-images-containers-volumes-and-networks/
https://docs.docker.com/engine/reference/commandline/docker/

Advertisements