Image name required for download/pull

Hello,

I am trying to mount local file system (/mnt/gpfs) inside docker on RHEL 7.6 (ppc64le) arch.
I need to know the “image name” that I need to pull or download to be used while mounting

Can anyone please assist

Docker version

Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: ccde200
Built: Tue May 29 17:39:14 2018
OS/Arch: linux/ppc64le
Experimental: false
Orchestrator: swarm

Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: ccde200
Built: Tue May 29 17:41:41 2018
OS/Arch: linux/ppc64le
Experimental: false

Regards

Hi

What are you trying to achieve?
You must have some docker image that you want to a container on, and mount the file system to that container?

Hi Martin,
Thanks for your response

I have mount point (gpfs/prod) at remote host (Host A) and I have successfully mount it as (/mnt/gpfs) on Host B (local host ) where we also have docker running .
Now the next step is to mount (/mnt/gpfs) under docker so i can see it under docker file system.

root@HostB> docker exec -it Db2wh bash
[root@HostB - Db2wh /]# df -h

Filesystem Size Used Avail Use% Mounted on
overlay 45G 30G 16G 66% /
tmpfs 64M 0 64M 0% /dev
clusterfs 16T 15T 1.5T 91% /mnt/blumeta0
/dev/mapper/rhel-root 45G 30G 16G 66% /etc/hosts
shm 512M 322M 191M 63% /dev/shm
tmpfs 62G 4.1G 58G 7% /run
tmpfs 13G 0 13G 0% /run/user/500
tmpfs 13G 0 13G 0% /run/user/503
tmpfs 13G 0 13G 0% /run/user/305482416
tmpfs 13G 0 13G 0% /run/user/0

I have seen several articles on web for the mount procedure but what i need image name (in our case ) as most of the examples show images/repositories (which can be pulled or downloaded) as ubuntu , debian, busybox , nginx etc.

Can i use any of these images (debian , nginx etc ) in my case ?
OR
Some specific redhat linux related image would be required ??

Example Links :

My Env
#######
OS: RHEL 7.6 (ppc64le)

Docker

Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: ccde200
Built: Tue May 29 17:39:14 2018
OS/Arch: linux/ppc64le
Experimental: false
Orchestrator: swarm

Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: ccde200
Built: Tue May 29 17:41:41 2018
OS/Arch: linux/ppc64le
Experimental: false

Also , you can suggest any other way to achieve this task

Thanks in advance

Regards
Shariq

Hi again.

Yes mounting a filesystem is a docker feature, that you can use in any images.
You mention busybox, and example of this could be:

docker run -ti -v /mnt/gpfs:/mnt/gpfs -v busybox

This will start a container, from the image busybox and it will give you a promth (since you dont have -d in docker run)
and there you should now have the same mountpoint /mnt/gpfs

Is it something like this you meant?

Hi Martin,
Thanks, I got a hint from the command you shared and it WORKED for a new container and target mount point can be seen !!
However, We are still looking to mount (/mnt/gpfs) into an exisitng container (NAMES=Db2wh) , Please check the command and its response at the end.

LOCAL FILE SYSTEM →

[root@HOSTB]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rhel-root 45G 30G 16G 66% /
devtmpfs 62G 0 62G 0% /dev
tmpfs 62G 0 62G 0% /dev/shm
tmpfs 62G 107M 62G 1% /run
tmpfs 62G 0 62G 0% /sys/fs/cgroup
/dev/mapper/mpatha2 1014M 180M 835M 18% /boot
clusterfs 16T 16T 912G 95% /mnt/clusterfs
overlay 45G 30G 16G 66% /var/lib/docker/overlay2/13c00d8da105f15d306ffa8a67431b0d63f622ddd129209d27df84ab8f615903/merged
shm 512M 323M 190M 64% /var/lib/docker/containers/2e4baf2805cb1313f24056c2a17c6daf3b4b590dec4637176edb12b69bd3f8ae/mounts/shm
/dev/loop0 3.2G 3.2G 0 100% /mnt/cdrom
tmpfs 13G 0 13G 0% /run/user/0
172.X.X.X:/gpfs/prod 176T 120T 56T 69% /mnt/gpfs

CONTAINER (Db2wh) →

[root@HOSTB]# docker exec -it Db2wh bash
[root@HOSTB - Db2wh /]# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 45G 30G 16G 66% /
tmpfs 64M 0 64M 0% /dev
clusterfs 16T 16T 912G 95% /mnt/blumeta0
/dev/mapper/rhel-root 45G 30G 16G 66% /etc/hosts
shm 512M 322M 191M 63% /dev/shm
tmpfs 62G 4.1G 58G 7% /run
tmpfs 13G 0 13G 0% /run/user/500
tmpfs 13G 0 13G 0% /run/user/503
tmpfs 13G 0 13G 0% /run/user/305482416

IMAGES:

[root@node1-db2wh gpfs]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
store/ibmcorp/db2wh_ee v11.5.2.0-db2wh-ppcle 6fbe8385dfd8 2 years ago 9.05GB
veritasnetbackup/client 8.1.2 182088531fa8 3 years ago 1.23GB

DOCKER PS

[root@node1-db2wh gpfs]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2e4baf2805cb store/ibmcorp/db2wh_ee:v11.5.2.0-db2wh-ppcle “/usr/sbin/init” 4 months ago Up 4 months Db2wh

[root@node1-db2wh gpfs]# docker run -d -it --privileged=true --net=host --name=Db2wh -v /mnt/gpfs:/mnt/gpfs 6fbe8385dfd8
docker: Error response from daemon: Conflict. The container name “/Db2wh” is already in use by container “2e4baf2805cb1313f24056c2a17c6daf3b4b590dec4637176edb12b69bd3 f8ae”. You have to remove (or rename) that container to be able to reuse that name.

Appreciate your help !

Regards
Shairq Hanif

Hi Martin ,
Could you please check my last response and assist

Thanks,
Shariq

Hi again

Sorry for the late response, have been alone with my daugter for vacation and there is not so much computer time when she is here :wink:

But you cant do it to allready running containers, you need to stop+delete the old one, and re-create it with the correct mounts.

Is there a reason why you dont stop+delete the current?