Skip to content

VOLUME instruction in Dockerfile #2

Description

@augusto-sb

Hello, the instruction:
VOLUME ['/etc/apache2/sites-enabled','/var/www','/var/log/apache2']
creates the following anonymous volume in the container:
[/etc/apache2/sites-enabled,/var/www,/var/log/apache2]
i think it is a Docker error but it can corrected using:
VOLUME /etc/apache2/sites-enabled /var/www /var/log/apache2

i hope it helps

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions