You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.. along with this Dockerfile in the same directory:
FROM ubuntu
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y nginx
CMD nginx && tail -f /dev/null
Now if I do "docker-compose up", I get the following image entry:
jonas@cyberman#11: docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
nginx_nginx latest 70d6fcf2fc2c 29 minutes ago 261.1 MB
"nginx_nginx"? Really? You couldn't just use "nginx" as I named it?
If you really want to have such weird naming schemes, at least let me override it with a proper name.
The text was updated successfully, but these errors were encountered:
Duplicate of #652. In summary: yes, it's annoying, but for now we rely on the naming scheme to keep track of containers. In the next version we're going to switch to using labels (see #1356) and then it'll be possible to implement support for custom container names.
I think to do this properly we'd want #1403, but that isn't currently possible with docker labels.
Instead of customizing the name, I think I would rather support some way of re-tagging the image to different names (something like #213). That way the "internal" names are consistent, but you can alias the image as anything you want for "external" use.
Thanks for the suggestion, @Jonast. This is covered by #213, as @dnephin suggests, and I have also created #2092 to more formally propose this feature.
I have the following docker-compose.yml:
.. along with this Dockerfile in the same directory:
Now if I do "docker-compose up", I get the following image entry:
"nginx_nginx"? Really? You couldn't just use "nginx" as I named it?
If you really want to have such weird naming schemes, at least let me override it with a proper name.
The text was updated successfully, but these errors were encountered: