microsoft / mssql-docker

Official Microsoft repository for SQL Server in Docker resources
MIT License
1.72k stars 756 forks source link

Cannot build mssql-server-linux #590

Open camille-rodriguez opened 4 years ago

camille-rodriguez commented 4 years ago

When I try to build the Dockerfile in linux/mssql-server-linux, it fails because it does not find the install file. What is this file in the docker instructions? Where is it supposed to be?

crodriguez@camille-hp:~/PycharmProjects/mssql-project/mssql-docker/linux/mssql-server-linux$ docker build .
Sending build context to Docker daemon  2.048kB
Step 1/4 : FROM ubuntu:16.04
 ---> 77be327e4b63
Step 2/4 : EXPOSE 1433
 ---> Using cache
 ---> 9981af1a830d
Step 3/4 : COPY ./install /
COPY failed: stat /var/snap/docker/common/var-lib-docker/tmp/docker-builder218059438/install: no such file or directory
crodriguez@camille-hp:~/PycharmProjects/mssql-project/mssql-docker/linux/mssql-server-linux$ cat Dockerfile 
# mssql-server-linux
# Maintainers: Microsoft Corporation (LuisBosquez and twright-msft on GitHub)
# GitRepo: https://github.com/Microsoft/mssql-docker

# Base OS layer: Latest Ubuntu LTS.
FROM ubuntu:16.04

# Default SQL Server TCP/Port.
EXPOSE 1433

# Copy all SQL Server runtime files from build drop into image.
**COPY ./install /**

# Run SQL Server process.
CMD [ "/opt/mssql/bin/sqlservr" ]
Bidthedog commented 4 years ago

See https://github.com/microsoft/mssql-docker/issues/206

croblesm commented 4 years ago

You don't have access to the source files referenced on that Dockerfile. If you want to create a new SQL Server container use the following Docker command:

docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest

Here you can find the list of valid SQL Server images until today.

If you want to create your own image, I recommend you to take a look at guidelines on how to create a custom image from an existing image.

Cheers,