Is it possible to run docker in docker in circleci

Hi, I am new to circleci , and I am learning to use it from the last week. I have a repo which i have to integrate with circleci. I have to build and run a docker container inside the main container. However doing so gives some errors like “docker0: error fetching interface information: Device not found” and “Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: mkdir /var/www: file exists: unknown” . Even though the container does get created inside, however it does not run. Any suggestions?

Yes, it is common for CI jobs to do such things.

Common reasons for container_linux.go:380 being reported by docker is how the command line has been written/ordered or the way that the ENTYPOINT/CMD is operating with any defined volumes/paths.

This is a short exchange of messages that has some examples

1 Like

Thanks. Really appreciate it.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.