# Docker install on Ubuntu can't find config file

**URL:** https://community.xibo.org.uk/t/docker-install-on-ubuntu-cant-find-config-file/31720
**Category:** CMS Installation
**Created:** [May 15, 2024, 7:13am UTC](https://community.xibo.org.uk/t/docker-install-on-ubuntu-cant-find-config-file/31720 "2024-05-15T07:13:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Catullus23](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/catullus23/32/15500_2.png) [@Catullus23](https://community.xibo.org.uk/u/Catullus23)
#### Post date: [May 15, 2024, 7:13am UTC](https://community.xibo.org.uk/t/docker-install-on-ubuntu-cant-find-config-file/31720/1 "2024-05-15T07:13:13Z")

</div>

Hi,

So I installed Ubuntu 24.04 on an older Mac Mini to use for a Xibo demo.  
I’m following the steps from the community post [Xibo CMS with Docker on Ubuntu 22.04](https://community.xibo.org.uk/t/xibo-cms-with-docker-on-ubuntu-22-04/9392) but when I want to run “docker-compose up -d” I run into errors.

First of all it says “no configuration file provided: not found”.  
So I added the -f flag “docker-compose -f config.env up -d” and got the error “stat /var/lib/snapd/void/config.env: no such file or directory”

So I added the path to the file “docker-compose -f /opt/xibo/config.env up -d” but I still get the error  
“stat /opt/xibo/config.env: no such file or directory”

When I run the stat command myself with the samen user (root) I do get results:  
root@xibo:/opt/xibo# stat /opt/xibo/config.env  
File: /opt/xibo/config.env  
Size: 4731 Blocks: 16 IO Block: 4096 regular file  
Device: 252,0 Inode: 4849676 Links: 1  
Access: (0664/-rw-rw-r–) Uid: ( 0/ root) Gid: ( 0/ root)  
Access: 2024-05-15 06:42:10.942009035 +0000  
Modify: 2024-05-15 06:41:24.360893355 +0000  
Change: 2024-05-15 07:06:44.989894979 +0000  
Birth: 2024-05-15 06:41:24.360893355 +0000

I copied the file to another folder ( /home/xibo) and when I ran it from there I got another error:  
root@xibo:/opt/xibo# docker-compose -f /home/xibo/config.env up -d  
parsing /home/xibo/config.env: Top-level object must be a mapping

Can someone point me in the right directory with this? I’m running out of skill

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [May 15, 2024, 7:27am UTC](https://community.xibo.org.uk/t/docker-install-on-ubuntu-cant-find-config-file/31720/2 "2024-05-15T07:27:12Z")

</div>

> [@Catullus23](#):
>
> error “stat /var/lib/snapd/void/config.env: no such file or directory”

You’re using the snap of docker/docker-compose and that can’t see outside of your home directory.

You need to move `/opt/xibo` in to `/home/xibo` and then `docker-compose up -d`

If you want to use `-f` then it’s the path/name of the `docker-compose.yml` file, not `config.env`.

---

<div class="post-metadata">

### Author: ![Catullus23](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/catullus23/32/15500_2.png) [@Catullus23](https://community.xibo.org.uk/u/Catullus23)
#### Post date: [May 15, 2024, 7:37am UTC](https://community.xibo.org.uk/t/docker-install-on-ubuntu-cant-find-config-file/31720/3 "2024-05-15T07:37:23Z")

</div>

Thx! been struggling for a couple of hourse now.  
So I now manually installed docker instead of the built-in docker installation in Ubuntu. All’s working great now. Thanks!

---

<div class="post-metadata">

### Author: ![system](https://community.xibo.org.uk/uploads/default/original/2X/a/a8759c2d8cc561474733895ac75beeb830f5d8ca.png) [@system](https://community.xibo.org.uk/u/system)
#### Post date: [August 14, 2024, 1:37pm UTC](https://community.xibo.org.uk/t/docker-install-on-ubuntu-cant-find-config-file/31720/4 "2024-08-14T13:37:46Z")

</div>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.
