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]: error on line 1: unknown instruction: s ervices: #1074

Open
s-taillon opened this issue Mar 2, 2025 · 1 comment
Open

[Bug]: error on line 1: unknown instruction: s ervices: #1074

s-taillon opened this issue Mar 2, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@s-taillon
Copy link

Operating system

Ubuntu 22.04

Description

Dockerfile

services:
windows:
image: dockurr/windows
container_name: windows
environment:
VERSION: "win10"
devices:
- /dev/kvm
- /dev/net/tun
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
restart: always
stop_grace_period: 2

docker build .

sebastien@ubuntu-srv:$ nano Dockerfile
sebastien@ubuntu-srv:
$ docker build .
[+] Building 0.0s (1/1) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 356B 0.0s
Dockerfile:1

1 | >>> services:
2 | windows:
3 | image: dockurr/windows

ERROR: failed to solve: dockerfile parse error on line 1: unknown instruction: s ervices:


Docker compose

docker build .

Docker log

not find

Screenshots (optional)

No response

@s-taillon s-taillon added the bug Something isn't working label Mar 2, 2025
@kroese
Copy link
Contributor

kroese commented Mar 2, 2025

You made a type somewhere, because it mentions s ervices (with an additional space). Also, you dont need to run docker build .

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