Feature request - Ubuntu:dind docker image

Bug #1881441 reported by g
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
New
Undecided
Unassigned

Bug Description

It would be super helpful to have an Ubuntu image for docker in docker as an alternative to the Alpine based docker:dind image.

Revision history for this message
Philip Roche (philroche) wrote :

Hi,

It is possible to use docker in docker with Ubuntu containers.

Start a docker container and map the docker unix socket

```
docker container run --interactive --volume /var/run/docker.sock:/var/run/docker.sock --tty --rm ubuntu:bionic /bin/bash
```

In container install docker.io

```
apt-get update && apt-get install --assume-yes docker.io
```

Start a new container inside this container

```
docker container run --interactive --tty --rm ubuntu:bionic /bin/bash
```

Is this helpful or are you looking for an easier way to do this without having to map unix sockets?

Phil

Revision history for this message
g (wgordonw1) wrote :

I am referring to docker in docker. It is helpful for testing systems (like when using gitlab runners).

Something along the lines of https://github.com/docker-library/docker/blob/eb305f71421bf772cfac2a46571280ff90f60033/19.03/docker-entrypoint.sh where they set the DOCKER_HOST='tcp://docker:2376' for using docker via the docker-dind image

Revision history for this message
Philip Roche (philroche) wrote :

@g Can you provide a reproducer script/steps on exact usage so we can replicate to better understand the request?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.