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

Chapter 3 - docker-compose #1

Open
timetobehappy opened this issue Apr 24, 2017 · 4 comments
Open

Chapter 3 - docker-compose #1

timetobehappy opened this issue Apr 24, 2017 · 4 comments

Comments

@timetobehappy
Copy link

I am trying docker-compose up -d using the below and the container exits as it is not able to create a directory called deployment.

version: '3'
services:
  web:
    image: jboss/wildfly
    volumes:
      - ~/deployments:/opt/jboss/wildfly/standalone/deployments
    ports:
      - 8080:8080

Error seen in logs: /opt/jboss/wildfly/standalone/deployments is not writable

I am running on an AWS centos instance as user centos

[[email protected] helloweb]$ hostnamectl
Static hostname: ip-10.ec2.internal
Icon name: computer-vm
Chassis: vm
Machine ID:
Boot ID:
Virtualization: xen
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.6.2.el7.x86_64
Architecture: x86-64
[[email protected] helloweb]$

@timetobehappy
Copy link
Author

is you already start with a directory called deployments in your home directory, everything works as expected. Issue is more when the directory is not there.

@anatolicvs
Copy link

anatolicvs commented Jul 22, 2017

yeap I have faced same issue as well, you can deal with by adding 'user: root' to docker-compose.yml file.
as I googled I reached this results and I hope, this post can give more detailed ideas about 'wildfly' works with custom folders and directory outside of box.
*https://goldmann.pl/blog/2014/07/18/logging-with-the-wildfly-docker-image/#_mounting_a_volume_from_the_host
*wildfly/wildfly-container#37

@bekverdyan
Copy link

I am trying docker-compose up -d using the below and the container exits as it is not able to create a directory called deployment.

version: '3'
services:
  web:
    image: jboss/wildfly
    volumes:
      - ~/deployments:/opt/jboss/wildfly/standalone/deployments
    ports:
      - 8080:8080

Error seen in logs: /opt/jboss/wildfly/standalone/deployments is not writable

I am running on an AWS centos instance as user centos

[[email protected] helloweb]$ hostnamectl
Static hostname: ip-10.ec2.internal
Icon name: computer-vm
Chassis: vm
Machine ID:
Boot ID:
Virtualization: xen
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.6.2.el7.x86_64
Architecture: x86-64
[[email protected] helloweb]$

Set user: root option to your container in docker-compose.yml

@alandma
Copy link

alandma commented Mar 7, 2020

I am trying docker-compose up -d using the below and the container exits as it is not able to create a directory called deployment.

version: '3'
services:
  web:
    image: jboss/wildfly
    volumes:
      - ~/deployments:/opt/jboss/wildfly/standalone/deployments
    ports:
      - 8080:8080

Error seen in logs: /opt/jboss/wildfly/standalone/deployments is not writable
I am running on an AWS centos instance as user centos
[[email protected] helloweb]$ hostnamectl
Static hostname: ip-10.ec2.internal
Icon name: computer-vm
Chassis: vm
Machine ID:
Boot ID:
Virtualization: xen
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.6.2.el7.x86_64
Architecture: x86-64
[[email protected] helloweb]$

Set user: root option to your container in docker-compose.yml

work for me, tks!

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

4 participants