Felipe Mattos
Felipe Mattos
RRailway
Created by Felipe Mattos on 2/15/2024 in #✋|help
DockerHub: Custom Start Command
Hi everyone! Greetings from Brazil! 🇧🇷 I've just upgraded to a Hobby Plan. However, I'm having difficulties with Custom Start Commands related to Docker Image at DockerHub. The image is Selenium Standalone Chrome. https://hub.docker.com/r/selenium/standalone-chrome Locally, using docker-compose, I set the following attribute:
services:
selenium:
container_name: chrome-alone
image: selenium/standalone-chrome:latest
**shm_size: 2g**
services:
selenium:
container_name: chrome-alone
image: selenium/standalone-chrome:latest
**shm_size: 2g**
I need to set the same attribute shm_size: 2g at Railway server, otherwise the service wont work properly. But i can't a find a way to do it. Tried to mess around with Custom Star Commands, but it fails to build the image. So far, the prompt is:
java -jar selenium/standalone-chrome.jar -d -p 4444:4444 --shm-size=2g
java -jar selenium/standalone-chrome.jar -d -p 4444:4444 --shm-size=2g
It gives me the error jarfile selenium/standalone-chrome.jar Any help will be appreciated 🙏
7 replies