Skip to content

Tag: docker

Return the ls -l output in docker container

So I have a docker container running which has a couple of folder/files inside. When I go inside the container I can see that they are: hostmachine$> docker exec -it testContainer bash testContainer@testContainer:~$ ls -l My question is: What script, how can I use it on my hostmachine that will: 1) Echo ba…

Getting 32 bit Centos docker image

I was trying to run 32 bit Centos in container: Inside container I run command uname-a in order to know it is 32 bit. Got output: According to my understanding it is 64 bit version and not expected 32 bit one? What I do wrong while getting 32 bit Centos? Answer Containers share kernel with the host system. Th…

Using `groupadd` in Docker container

I’m using Ubuntu 14.04 Trusty Tahr, and a quick peek at /etc/group reveals When I tried to add staff, I got an error message as I would expect (being that staff is already defined with gid 50). The unexpected part is when I tried to add a user with the staff group. What am I doing wrong here? It don&#82…

Can not start docker engine in Oracle Linux

I followed the instructions in this blog “https://blogs.oracle.com/hlsu/install-docker-on-oracle-linux-7” to install docker engine in my Oracle Linux 7 server. This is my log for yum install docker-engine : it seems to have installed correctly but the next step i,e. to start the docker gives me th…