Posts
Q&A
standard_init_linux.go:211: exec user process caused "exec format error"
๊ฐ์ฌ๋ ๋ง์์ ํํธ๋ฅผ ์ป์ด์ golang ์ด๋ฏธ์ง ํ๊ฒฝ ๋ด์์ go ์์ค์ฝ๋๋ฅผ ์ปดํ์ผ๊น์ง ํ๋๋ก dockerfile ์์ฑํ๋๋ ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋์์ต๋๋ค. ๊ฐ์ฌํฉ๋๋ค. FROM golang:1.11 WORKDIR /usr/src/app COPY main.go /usr/src/app RUN go get github.com/julienschmidt/httprouter RUN go build /usr/src/app/main.go RUN chmod +x /usr/src/app/main CMD ["/usr/src/app/main"]
- Likes
- 2
- Comments
- 6
- Viewcount
- 3.9K
Q&A
standard_init_linux.go:211: exec user process caused "exec format error"
๋งฅ๋ถ์ ๋๋ค Darwin Giwanui-MacBookPro.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64 ์ผ๋จ ๋ค์ ๊ฐ์ ๋์ด๊ฐ๋๋ก ํ๊ฒ ์ต๋๋ค
- Likes
- 2
- Comments
- 6
- Viewcount
- 3.9K
Q&A
standard_init_linux.go:211: exec user process caused "exec format error"
๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค. ์ ๊ฐ ์์ฑํ ๋์ปค ํ์ผ์ ์๋์ ๊ฐ์์ต๋๋ค. FROM golang:1.11 WORKDIR /usr/src/app COPY main /usr/src/app RUN chmod +x /usr/src/app/main CMD ["/usr/src/app/main"] ์นดํผ ํ์ chmod๋ก ๊ถํ์ ์คฌ๊ณ ํธ์คํธ์์๋ ์คํ๊ถํ์ ์ค ์ํ์ธ๋ฐ๋ ์ฌ์ ํ ์ค๋ฅ๊ฐ ๋๋ค์
- Likes
- 2
- Comments
- 6
- Viewcount
- 3.9K
Q&A
๊ฐ์ ๋จธ์ ์์ ์ธํฐ๋ท ์ฐ๊ฒฐ์ด ์๋ฉ๋๋ค
์ง๋ฌธ ์ถ๊ฐํ์ต๋๋ค.
- Likes
- 0
- Comments
- 5
- Viewcount
- 2.6K




