I have the following docker-compose.yml file:
version: '2' services: php-apache: image: reynierpm/php55-dev ports: - "80:80" environment: PHP_ERROR_REPORTING: 'E_ALL & ~E_DEPRECATED & ~E_NOTICE' volumes: - ~/data:/data
Each time I run the following docker-compose up -d , it creates a container with the same name all the time, for example, php55devwork_php-apache_1 , which is the folder where the file is plus the service name. Example:
[ rperez@dev php55-dev-work] $ tree . βββ composer.json βββ docker-compose.yml βββ Dockerfile
Is there any way to change this name randomly? Now I want to test another application in one container, but another instance and the only solution I have is to copy the contents to another folder.
What would be the best solution?
source share