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

[Bug]: compose.yml: "version" is obsolete..!! #495

Closed
1 task done
zerocoolroot opened this issue May 15, 2024 · 9 comments
Closed
1 task done

[Bug]: compose.yml: "version" is obsolete..!! #495

zerocoolroot opened this issue May 15, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@zerocoolroot
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Machine specifications

AMD Ryzen 3 2200G / 16GB

Operating system

Fedora 40 Workstation / Kernel 6.8.7-300

Docker version

26.1.2, build 211e74b

Description

What am I doing wrong..??

I created the compose.yml file
I ran the command "docker compose up -d compose.yml", following the tutorial and it presented the error "version is obsolete".

At first I thought it was the version of Windows I was trying to install, but I believe it was version: "3" in the compose.yml file, but I don't know which version to set.

Docker compose

version: "3"
services:
windows:
image: dockurr/windows
container_name: windows
environment:
VERSION: "win7"
RAM_SIZE: "8G"
DISK_SIZE: "200G"
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
restart: on-failure

Docker log

{"log":"\n","stream":"stdout","time":"2024-05-15T13:26:49.804822355Z"}
{"log":"Hello from Docker!\n","stream":"stdout","time":"2024-05-15T13:26:49.804873176Z"}
{"log":"This message shows that your installation appears to be working correctly.\n","stream":"stdout","time":"2024-05-15T13:26:49.804875866Z"}
{"log":"\n","stream":"stdout","time":"2024-05-15T13:26:49.804878036Z"}
{"log":"To generate this message, Docker took the following steps:\n","stream":"stdout","time":"2024-05-15T13:26:49.804880106Z"}
{"log":" 1. The Docker client contacted the Docker daemon.\n","stream":"stdout","time":"2024-05-15T13:26:49.804882016Z"}
{"log":" 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.\n","stream":"stdout","time":"2024-05-15T13:26:49.804883756Z"}
{"log":" (amd64)\n","stream":"stdout","time":"2024-05-15T13:26:49.804885636Z"}
{"log":" 3. The Docker daemon created a new container from that image which runs the\n","stream":"stdout","time":"2024-05-15T13:26:49.804887276Z"}
{"log":" executable that produces the output you are currently reading.\n","stream":"stdout","time":"2024-05-15T13:26:49.804888966Z"}
{"log":" 4. The Docker daemon streamed that output to the Docker client, which sent it\n","stream":"stdout","time":"2024-05-15T13:26:49.804890636Z"}
{"log":" to your terminal.\n","stream":"stdout","time":"2024-05-15T13:26:49.804892316Z"}
{"log":"\n","stream":"stdout","time":"2024-05-15T13:26:49.804893916Z"}
{"log":"To try something more ambitious, you can run an Ubuntu container with:\n","stream":"stdout","time":"2024-05-15T13:26:49.804895476Z"}
{"log":" $ docker run -it ubuntu bash\n","stream":"stdout","time":"2024-05-15T13:26:49.804897146Z"}
{"log":"\n","stream":"stdout","time":"2024-05-15T13:26:49.804898736Z"}
{"log":"Share images, automate workflows, and more with a free Docker ID:\n","stream":"stdout","time":"2024-05-15T13:26:49.804900296Z"}
{"log":" https://hub.docker.com/\n","stream":"stdout","time":"2024-05-15T13:26:49.804901916Z"}
{"log":"\n","stream":"stdout","time":"2024-05-15T13:26:49.804903496Z"}
{"log":"For more examples and ideas, visit:\n","stream":"stdout","time":"2024-05-15T13:26:49.804905026Z"}
{"log":" https://docs.docker.com/get-started/\n","stream":"stdout","time":"2024-05-15T13:26:49.804906666Z"}
{"log":"\n","stream":"stdout","time":"2024-05-15T13:26:49.804908306Z"}

Screenshots (optional)

Captura de tela de 2024-05-15 11-28-10

@zerocoolroot zerocoolroot added the bug Something isn't working label May 15, 2024
@kroese
Copy link
Contributor

kroese commented May 15, 2024

From that warning it looks like the fix is to just remove that whole version line.

@zerocoolroot
Copy link
Author

From that warning it looks like the fix is to just remove that whole version line.

Sorry my bad english, I'm from Brazil..!!

I removed 'version' line and I got message "no such service: compose.yml".

@kroese
Copy link
Contributor

kroese commented May 15, 2024

You can just run I guess:

docker compose up -d

You must not add compose.yml at the end like you did:

docker compose up -d compose.yml

@zerocoolroot
Copy link
Author

You can just run I guess:

docker compose up -d

You must not add compose.yml at the end like you did:

docker compose up -d compose.yml

I ran the command "docker compose up -d" and it apparently worked, but so far Windows 7 won't start.

I don't know what I could be doing wrong. I would like some help, if you can, of course.

Captura de tela de 2024-05-15 15-57-01

@kroese
Copy link
Contributor

kroese commented May 15, 2024

Why do you think it didnt start? Looks good. Also you are using the -d option to start it in the background, so thats why you dont see any logging..

@zerocoolroot
Copy link
Author

Why do you think it didnt start? Looks good. Also you are using the -d option to start it in the background, so thats why you dont see any logging..

I created another container named windows81, but I can't access it through the browser, accessing it via my internal IP or via http://localhost:8006

Captura de tela de 2024-05-15 16-26-12

Captura de tela de 2024-05-15 16-28-39

Captura de tela de 2024-05-15 16-28-45

@kroese
Copy link
Contributor

kroese commented May 15, 2024

Please create another issue via the bug report form, because without logfiles/compose/etc I cannot help in any meaningful way.

@kroese kroese closed this as completed May 15, 2024
@zerocoolroot
Copy link
Author

Please create another issue via the bug report form, because without logfiles/compose/etc I cannot help in any meaningful way.

Please, where do I find the files you need in Fedora 40..??

@kroese
Copy link
Contributor

kroese commented May 15, 2024

Use docker logs windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants