Skip to content

Instantly share code, notes, and snippets.

@guitarrapc guitarrapc/Dockerfile
Last active Apr 26, 2019

Embed
What would you like to do?
mcr.microsoft.com/mssql/server:2017-CU12-ubuntu strange log
FROM mcr.microsoft.com/mssql/server:2017-CU12-ubuntu
# Install prerequistes since it is needed to get repo config for SQL server
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -yq curl apt-transport-https && \
# Get official Microsoft repository configuration
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list | tee /etc/apt/sources.list.d/mssql-server.list && \
apt-get update && \
# Install optional packages
apt-get install -y mssql-server-fts && \
# Cleanup the Dockerfile
apt-get clean && \
rm -rf /var/lib/apt/lists
# Run SQL Server process
ENV ACCEPT_EULA=Y
ENV MSSQL_PID=Express
CMD /opt/mssql/bin/sqlservr
```
Sending build context to Docker daemon 153.6MB
Step 1/5 : FROM mcr.microsoft.com/mssql/server:2017-CU12-ubuntu
2017-CU12-ubuntu: Pulling from mssql/server
59ab41dd721a: Already exists
57da90bec92c: Already exists
06fe57530625: Already exists
5a6315cba1ff: Already exists
739f58768b3f: Already exists
0b751601bca3: Already exists
bcf04a22644a: Already exists
dc7745d9cb0c: Pull complete
ffbc09bb4f1a: Pull complete
Digest: sha256:19b9392f035fc9f82b77f6833d1490bca8cb041b445cd451de0d1f1f3efe70e8
Status: Downloaded newer image for mcr.microsoft.com/mssql/server:2017-CU12-ubuntu
---> 4095d6d460cd
Step 2/5 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -yq curl apt-transport-https && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list | tee /etc/apt/sources.list.d/mssql-server.list && apt-get update && apt-get install -y mssql-server-fts && apt-get clean && rm -rf /var/lib/apt/lists
---> Running in 80a679923b7d
Get:1 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease [3226 B]
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:4 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [87.2 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [129 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [816 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [552 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6121 B]
Get:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [320 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1222 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [963 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.1 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B]
Get:23 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8532 B]
Fetched 26.1 MB in 1min 31s (286 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libcurl3-gnutls
The following NEW packages will be installed:
curl
The following packages will be upgraded:
apt-transport-https libcurl3-gnutls
2 upgraded, 1 newly installed, 0 to remove and 55 not upgraded.
Need to get 350 kB of archives.
After this operation, 340 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcurl3-gnutls amd64 7.47.0-1ubuntu2.12 [185 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-transport-https amd64 1.2.31 [26.6 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 curl amd64 7.47.0-1ubuntu2.12 [139 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 350 kB in 5s (62.8 kB/s)
(Reading database ... 8900 files and directories currently installed.)
Preparing to unpack .../libcurl3-gnutls_7.47.0-1ubuntu2.12_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.12) over (7.47.0-1ubuntu2.9) ...
Preparing to unpack .../apt-transport-https_1.2.31_amd64.deb ...
Unpacking apt-transport-https (1.2.31) over (1.2.27) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_7.47.0-1ubuntu2.12_amd64.deb ...
Unpacking curl (7.47.0-1ubuntu2.12) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.12) ...
Setting up apt-transport-https (1.2.31) ...
Setting up curl (7.47.0-1ubuntu2.12) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 983 100 983 0 0 2887 0 --:--:-- --:--:-- --:--:-- 2891
OK
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 91 100 91 0 0 276 0 --:--:-- --:--:-- --:--:-- 275
deb [arch=amd64] https://packages.microsoft.com/ubuntu/16.04/mssql-server-2017 xenial main
Hit:1 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease
Get:2 https://packages.microsoft.com/ubuntu/16.04/mssql-server-2017 xenial InRelease [3218 B]
Get:3 https://packages.microsoft.com/ubuntu/16.04/mssql-server-2017 xenial/main amd64 Packages [10.1 kB]
Hit:4 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:7 http://security.ubuntu.com/ubuntu xenial-security InRelease
Fetched 13.3 kB in 3s (3453 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
mssql-server
The following NEW packages will be installed:
mssql-server mssql-server-fts
0 upgraded, 2 newly installed, 0 to remove and 55 not upgraded.
Need to get 416 MB of archives.
After this operation, 1507 MB of additional disk space will be used.
Get:1 https://packages.microsoft.com/ubuntu/16.04/mssql-server-2017 xenial/main amd64 mssql-server amd64 14.0.3076.1-2 [178 MB]
Get:2 https://packages.microsoft.com/ubuntu/16.04/mssql-server-2017 xenial/main amd64 mssql-server-fts amd64 14.0.3076.1-2 [238 MB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 416 MB in 25s (16.6 MB/s)
Selecting previously unselected package mssql-server.
(Reading database ... 8907 files and directories currently installed.)
Preparing to unpack .../mssql-server_14.0.3076.1-2_amd64.deb ...
Unpacking mssql-server (14.0.3076.1-2) ...
Selecting previously unselected package mssql-server-fts.
Preparing to unpack .../mssql-server-fts_14.0.3076.1-2_amd64.deb ...
Unpacking mssql-server-fts (14.0.3076.1-2) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Setting up mssql-server (14.0.3076.1-2) ...
+--------------------------------------------------------------+
Please run 'sudo /opt/mssql/bin/mssql-conf setup'
to complete the setup of Microsoft SQL Server
+--------------------------------------------------------------+
SQL Server needs to be restarted in order to apply this setting. Please run
'systemctl restart mssql-server.service'.
Setting up mssql-server-fts (14.0.3076.1-2) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Removing intermediate container 80a679923b7d
---> ee3166473236
Step 3/5 : ENV ACCEPT_EULA=Y
---> Running in 1dbf3c6b7851
Removing intermediate container 1dbf3c6b7851
---> 143d770280fd
Step 4/5 : ENV MSSQL_PID=Express
---> Running in 8ac7a526e6a6
Removing intermediate container 8ac7a526e6a6
---> 65886c7556f0
Step 5/5 : CMD /opt/mssql/bin/sqlservr
---> Running in 9aa23ce8ba75
Removing intermediate container 9aa23ce8ba75
---> 8672eb02c9bf
Successfully built 8672eb02c9bf
Successfully tagged sqlexpress_cu12_patch:latest
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
```
@guitarrapc

This comment has been minimized.

Copy link
Owner Author

commented Apr 26, 2019

!?

The following additional packages will be installed:

mssql-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.