Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using alias for renaming containers #95

Open
deminngi opened this issue Oct 19, 2015 · 3 comments
Open

Using alias for renaming containers #95

deminngi opened this issue Oct 19, 2015 · 3 comments

Comments

@deminngi
Copy link

Hi succeded in changing the container names using my own.
Here my findings:

mymain:                                                              
  build: docker/main                                                 
  #dockerfile: Ubuntu-12.04 # Ubuntu 12.04 - PHP 5.3, LTS (precise)  
  dockerfile: Ubuntu-14.04  # Ubuntu 14.04 - PHP 5.5, LTS (trusty)   
  #dockerfile: Ubuntu-15.04 # Ubuntu 15.04 - PHP 5.6 (vivid)         
  #dockerfile: Ubuntu-15.10 # Ubuntu 15.10 - PHP 5.6 (wily)          
  #dockerfile: Ubuntu-HHVM  # Ubuntu 14.04 - HHVM (trusty)           
  #dockerfile: Centos-7     # CentOS 7     - PHP 5.4                 
  container_name: mymain                                             
  hostname: mymain                                                   
  links:                                                             
    - mydb:mysql                                                   
    #- cmtpg                                                         
    #- cmtmail                                                       
    #- cmtsolr                                                       
    #- cmtsearch                                                     
    #- cmtredis                                                      
    #- cmtcache                                                      
    #- cmtftp                                                        
  volumes:                                                           
    #- ./:/docker/                                                    
    - /tmp/debug/:/tmp/debug/                                        
  volumes_from:                                                      
    - mystorage                                                        
  # cap and privileged needed for slowlog                            
  cap_add:                                                           
    - SYS_PTRACE                                                     
  privileged: true                                                   
  env_file:                                                          
    - docker-env.yml                                                 

the magic is behind links ...: of course Makefile targets must be aligned to :-)

mblaschke added a commit to webdevops/php-docker-boilerplate that referenced this issue Oct 19, 2015
@mblaschke
Copy link
Member

Wrong reference, sorry :(

@htuscher
Copy link
Member

htuscher commented Sep 3, 2016

Can this ticket be closed? Is there a todo in here? I'm missing some problem description.

@deminngi
Copy link
Author

Can be closed, no action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants