-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Comments
From that warning it looks like the fix is to just remove that whole |
Sorry my bad english, I'm from Brazil..!! I removed 'version' line and I got message "no such service: compose.yml". |
You can just run I guess:
You must not add
|
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. |
Why do you think it didnt start? Looks good. Also you are using the |
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 |
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..?? |
Use |
Is there an existing issue for this?
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)
The text was updated successfully, but these errors were encountered: