Skip to content

TKLDev - support for docker in appliance builds #1502

Open
@CUCraigT

Description

@CUCraigT

[ note from @JedMeister ]

I've somewhat hijacked this issue to repurpose it to be a "feature request" for docker support in TKLDev builds.


I am attempting to build an appliance to basically just run Docker and a couple Docker containers. I have successfully gotten Docker installed based on TKL Core and installing those packages. However, I then want to pull the two Docker images I want using docker pull. This fails during the Make looking like the socket is not available. I have even tried to start the the docker service explicitly and still no luck. Here is the error I get:

+ echo Start Docker Service
Start Docker Service
+ systemctl start docker
[ ok ] Starting Docker: docker.
+ whoami
root
+ echo Pull Docker Images
Pull Docker Images
+ docker pull mcr.microsoft.com/mssql/server:2017-latest
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
make: *** [/usr/share/fab/product.mk:540: build/stamps/root.patched] Error 1

Here is my conf.d file:

#!/bin/sh -ex
SQL_VERSION="2017-latest"
echo "Install Docker"

# add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"

echo "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" >> /etc/apt/sources.list.d/sources.list

curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -

apt-get update
apt-get install docker-ce docker-ce-cli containerd.io

echo "Start Docker Service"
systemctl start docker

whoami
echo "Pull Docker Images"

#Pull MSSQL Server Image
docker pull mcr.microsoft.com/mssql/server:$SQL_VERSION

Any thoughts or tips on how I could do this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions