Executing docker run command from config file
You can try docker compose
With Compose, you use a Compose file to configure your application’s services. Then, using a single command, you create and start all the services from your configuration
In your case docker-compose.yml
file will looks like
version: '2'services: hastebin: image: rlister/hastebin ports: - "7777:7777" volumes: - /apps/hastebin/data:/app/data environment: - STORAGE_TYPE=file
And you can run service by command docker-compose up